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:
C. R. Oldham 2013-12-04 12:10:35 -08:00
commit c14679ddae

View File

@ -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'](