Default ssh keys to empty list
If the node doesn't have ssh keys defined we currently rely on nodepool adding an empty list of ssh keys. Instead be safe and default to an empty list. Change-Id: I1cbac643f47923b18959153f318d3d2fdc9626cd
This commit is contained in:
parent
fd53894f73
commit
e8dcc42c09
|
@ -1269,7 +1269,7 @@ class AnsibleJob(object):
|
||||||
self.winrm_read_timeout
|
self.winrm_read_timeout
|
||||||
|
|
||||||
host_keys = []
|
host_keys = []
|
||||||
for key in node.get('host_keys'):
|
for key in node.get('host_keys', []):
|
||||||
if port != 22:
|
if port != 22:
|
||||||
host_keys.append("[%s]:%s %s" % (ip, port, key))
|
host_keys.append("[%s]:%s %s" % (ip, port, key))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue