Skip to content

Commit

Permalink
add libvirt_inject_key flag
Browse files Browse the repository at this point in the history
fix bug #971640

Change-Id: I48efc5babdd9b233342a33c87c461aabf5f5915b
  • Loading branch information
pubyun authored and Chuck Short committed Apr 26, 2012
1 parent a67db45 commit 5ab5051
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nova/virt/libvirt/connection.py
Expand Up @@ -105,6 +105,9 @@
default=False,
help='Inject the admin password at boot time, '
'without an agent.'),
cfg.BoolOpt('libvirt_inject_key',
default=True,
help='Inject the ssh public key at boot time'),
cfg.BoolOpt('use_usb_tablet',
default=True,
help='Sync virtual and real mouse cursors in Windows VMs'),
Expand Down Expand Up @@ -1294,7 +1297,7 @@ def basepath(fname='', suffix=suffix):
self._create_local(basepath('disk.config'), 64, unit='M',
fs_format='msdos', label=label) # 64MB

if instance['key_data']:
if FLAGS.libvirt_inject_key and instance['key_data']:
key = str(instance['key_data'])
else:
key = None
Expand Down

0 comments on commit 5ab5051

Please sign in to comment.