Is your feature request related to a problem? Please describe.
As an example, if running a cmd.script from the command line (salt-call cmd.script ...) the salt environment of the source file must be specified if it is not located in base. This is problematic and can be somewhat confusing when you have saltenv: set in the minion config. It's even more confusing when lock_saltenv: is set as it makes a command that should be invalid, valid:
ex (This is valid even when lock_saltenv is set)
salt-call cmd.script salt://scriptfile saltenv=dev
Describe the solution you'd like
Use the configured environment as the default.
This is probably a pretty big change as "source" is used in a number of locations, but it's pretty annoying.
Is your feature request related to a problem? Please describe.
As an example, if running a cmd.script from the command line (
salt-call cmd.script ...) the salt environment of the source file must be specified if it is not located inbase. This is problematic and can be somewhat confusing when you havesaltenv:set in the minion config. It's even more confusing whenlock_saltenv:is set as it makes a command that should be invalid, valid:ex (This is valid even when lock_saltenv is set)
salt-call cmd.script salt://scriptfile saltenv=devDescribe the solution you'd like
Use the configured environment as the default.
This is probably a pretty big change as "source" is used in a number of locations, but it's pretty annoying.