mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
__env__
is now known in the module's global scope.
This commit is contained in:
parent
1b5e2ff63f
commit
fbfd926fdd
@ -54,7 +54,7 @@ import re
|
||||
import sys
|
||||
|
||||
|
||||
def _present_test(user, name, enc, comment, options, source, config, env):
|
||||
def _present_test(user, name, enc, comment, options, source, config):
|
||||
'''
|
||||
Run checks for "present"
|
||||
'''
|
||||
@ -64,7 +64,7 @@ def _present_test(user, name, enc, comment, options, source, config, env):
|
||||
user,
|
||||
source,
|
||||
config,
|
||||
env)
|
||||
__env__)
|
||||
if keys:
|
||||
comment = ''
|
||||
for key, status in keys.items():
|
||||
@ -168,7 +168,6 @@ def present(
|
||||
options or [],
|
||||
source,
|
||||
config,
|
||||
__env__
|
||||
)
|
||||
return ret
|
||||
|
||||
@ -176,8 +175,7 @@ def present(
|
||||
data = __salt__['ssh.set_auth_key_from_file'](
|
||||
user,
|
||||
source,
|
||||
config,
|
||||
__env__)
|
||||
config)
|
||||
else:
|
||||
# check if this is of form {options} {enc} {key} {comment}
|
||||
sshre = re.compile(r'^(.*?)\s?((?:ssh\-|ecds)[\w-]+\s.+)$')
|
||||
|
Loading…
Reference in New Issue
Block a user