Merge pull request #49527 from terminalmage/remove-special-envs-handling

Remove special handling for file_envs fileserver func
This commit is contained in:
Nicole Thomas 2018-09-06 10:03:05 -04:00 committed by GitHub
commit 75a3b52215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -897,8 +897,6 @@ class FSChan(object):
cmd = load['cmd'].lstrip('_')
if cmd in self.cmd_stub:
return self.cmd_stub[cmd]
if cmd == 'file_envs':
return self.fs.envs()
if not hasattr(self.fs, cmd):
log.error('Malformed request, invalid cmd: {0}'.format(load))
return {}