You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the following code is raising an exception during the second if evaluation (if secret_with_default['user'] != 'password') whereas chef_vault_item_or_default() is expecting have the same behaviour than chef_vault_item() in that case
secret_with_default = chef_vault_item_or_default('fake', 'secret', 'default')
secret = chef_vault_item('fake', 'secret')
if secret['user'] != 'password'
Chef::Log.info 'secret != password'
raise
end
if secret_with_default['user'] != 'password'
Chef::Log.info 'secret_with_default != password'
raise
end
Please note this issue is only triggered in a kitchen test environment.
The text was updated successfully, but these errors were encountered:
For a secret defined in kitchen.yml like the following
the following code is raising an exception during the second if evaluation (
if secret_with_default['user'] != 'password'
) whereaschef_vault_item_or_default()
is expecting have the same behaviour thanchef_vault_item()
in that casePlease note this issue is only triggered in a kitchen test environment.
The text was updated successfully, but these errors were encountered: