Key was converted through str() even if None, resulting in "None" being
added to authorized_keys when no key was specified.
This commit is contained in:
commit
f77c58ce31
@ -828,7 +828,10 @@ class LibvirtConnection(driver.ComputeDriver):
|
|||||||
if FLAGS.libvirt_type == 'lxc':
|
if FLAGS.libvirt_type == 'lxc':
|
||||||
target_partition = None
|
target_partition = None
|
||||||
|
|
||||||
key = str(inst['key_data'])
|
if inst['key_data']:
|
||||||
|
key = str(inst['key_data'])
|
||||||
|
else:
|
||||||
|
key = None
|
||||||
net = None
|
net = None
|
||||||
|
|
||||||
nets = []
|
nets = []
|
||||||
|
Loading…
Reference in New Issue
Block a user