mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #21848 from rallytime/bp-21635
Backport #21635 to 2014.7
This commit is contained in:
commit
c27692cdab
@ -187,11 +187,14 @@ def present(
|
||||
else:
|
||||
# Split keyline to get key und commen
|
||||
keyline = keyline.split(' ')
|
||||
key_type = keyline[0]
|
||||
key_value = keyline[1]
|
||||
key_comment = keyline[2] if len(keyline) > 2 else ''
|
||||
data = __salt__['ssh.set_auth_key'](
|
||||
user,
|
||||
keyline[1],
|
||||
keyline[0],
|
||||
keyline[2],
|
||||
key_value,
|
||||
key_type,
|
||||
key_comment,
|
||||
options or [],
|
||||
config)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user