Skip to content

Commit

Permalink
Avoid raising exceptions when calling Fileserver.envs
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Aug 29, 2018
1 parent ec04282 commit f13fc67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions salt/fileserver/__init__.py
Expand Up @@ -489,11 +489,12 @@ def update_intervals(self, back=None):
ret[fsb] = self.servers[fstr]()
return ret

def envs(self, back=None, sources=False):
def envs(self, load={}, back=None, sources=False):
'''
Return the environments for the named backend or all backends
'''
back = self.backends(back)
back = self.backends(load.get('back', back))
sources = load.get('sources', sources)
ret = set()
if sources:
ret = {}
Expand Down

0 comments on commit f13fc67

Please sign in to comment.