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
Part of puppetlabs#1768
!feature
* Added an `optional` opt to the env_vars plugin
When `true`, this allows env_var to return `nil` instead of failing
when the environment variable `var` isn't set.
op-ct
added a commit
to op-ct/bolt
that referenced
this issue
Apr 25, 2020
Closespuppetlabs#1768
!feature
* Added an `default_value` opt to the env_vars plugin
The `default_value` opt provides a value to fall back on when the
environment variable defined by the `var` opt isn't set
Use Case
The env_var plugin is handy, but I don't always need it to stop execution by failing when it isn't set.
Describe the Solution You Would Like
var
optional (and return nil if it does not exist)var
doesn't existDescribe Alternatives You've Considered
Avoid using
env_var
at all, and addingsystem::env()
+ empty var handling logic to each plan.The text was updated successfully, but these errors were encountered: