Skip to content

Commit 0517d37

Browse files
halfsss0undt3ch
authored andcommitted
not env when minion not in the top.sls
1 parent b3a029d commit 0517d37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

salt/modules/saltutil.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ def _sync(form, saltenv=None):
4141
if saltenv is None:
4242
# No environment passed, detect them based on gathering the top files
4343
# from the master
44-
saltenv = 'base'
4544
st_ = salt.state.HighState(__opts__)
4645
top = st_.get_top()
4746
if top:
4847
saltenv = st_.top_matches(top).keys()
48+
if not saltenv:
49+
saltenv = 'base'
4950
if isinstance(saltenv, string_types):
5051
saltenv = saltenv.split(',')
5152
ret = []

0 commit comments

Comments
 (0)