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:
Thierry Carrez 2011-03-30 15:37:48 +00:00 committed by Tarmac
commit f77c58ce31

View File

@ -828,7 +828,10 @@ class LibvirtConnection(driver.ComputeDriver):
if FLAGS.libvirt_type == 'lxc':
target_partition = None
key = str(inst['key_data'])
if inst['key_data']:
key = str(inst['key_data'])
else:
key = None
net = None
nets = []