]> xenbits.xensource.com Git - osstest/openstack-nova.git/commitdiff
Fix admin password skip check.
authorDan Prince <dan.prince@rackspace.com>
Thu, 2 Feb 2012 01:50:51 +0000 (20:50 -0500)
committerDan Prince <dan.prince@rackspace.com>
Thu, 2 Feb 2012 01:54:51 +0000 (20:54 -0500)
Skip admin password configuration only if the agent 'version' is
empty. Previously both the 'version' and 'agent_build' were
required to be set.

As the 'agent_build' table is primarily used for upgrades
there should be no requirement that a record exist in order
to configure admin passwords.

Fixes LP Bug #925237.

Change-Id: Ie4530a30ed02f3d49a07037e9d1cc52ef0af1dd4

nova/virt/xenapi/vmops.py

index f3ff9a22dd6f80d97920c5df14d28e9d890d609d..3e90ce9e43788a856210d6b1b6c1420dfdd7000f 100644 (file)
@@ -501,7 +501,7 @@ class VMOps(object):
 
         # if the guest agent is not available, configure the
         # instance, but skip the admin password configuration
-        no_agent = version is None or agent_build is None
+        no_agent = version is None
         self._configure_instance(ctx, instance, vm_ref, no_agent)
 
     def _handle_spawn_error(self, vdis, spawn_error):