Permalink
Browse files

Add environments to check_key_file

  • Loading branch information...
thatch45 committed May 22, 2012
1 parent 120968d commit 83b1a27aff6426f054671f0f0bcbb8dcb044f480
Showing with 2 additions and 2 deletions.
  1. +2 −2 salt/modules/ssh.py
View
@@ -174,13 +174,13 @@ def auth_keys(user, config='.ssh/authorized_keys'):
return _validate_keys(full)
-def check_key_file(user, keysource, config='.ssh/authorized_keys'):
+def check_key_file(user, keysource, config='.ssh/authorized_keys', env='base'):
'''
Check a keyfile from a source destination against the local keys and
return the keys to change
'''
ret = {}
- keyfile = __salt__['cp.cache_file'](keysource)
+ keyfile = __salt__['cp.cache_file'](keysource, env)
if not keyfile:
return ret
s_keys = _validate_keys(keyfile)

0 comments on commit 83b1a27

Please sign in to comment.