mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #9030 from cro/fix_8698
Be more liberal about the format of the key we are looking for.
This commit is contained in:
commit
c14679ddae
@ -269,7 +269,11 @@ def absent(name,
|
||||
'comment': ''}
|
||||
|
||||
# Get just the key
|
||||
name = name.split(' ')[0]
|
||||
keydata = name.split(' ')
|
||||
if len(keydata) > 1:
|
||||
name = keydata[1]
|
||||
else:
|
||||
name = keydata[0]
|
||||
|
||||
if __opts__['test']:
|
||||
check = __salt__['ssh.check_key'](
|
||||
|
Loading…
Reference in New Issue
Block a user