Hello,
I want to use sensitive flag with variable, meaning
sensitive #{some_var}
But it is not working.
In my recipe
I have
some_var="true"
if node['debug'] == true
some_var=false
end
execute 'xxx' do
sensitive #{some_var}
command xxx
end
but always shows the command regardless of if the node['debug'] is set/present or not.
sensitive lazy { "#{some_var}" } gives compile error as lazy is undefined method..
Any suggestions?
Thanks in advance
M