cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject git commit: updated refs/heads/master to a2dc4b1
Date Thu, 01 Aug 2013 11:14:03 GMT
Updated Branches:
  refs/heads/master eb5099a2a -> a2dc4b1ca


CLOUDSTACK-3989: We don't hold the vm object

VirtualMachine.list( only gives the list of vms but not the vm object as
returned by VirtualMachine.create( any operations on the listed VMs then
fails. Explicit call to startVirtualMachine as in setUpClass fixes this.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f064ad22dc55e0e5e7b5165f1864f2339d39b8f4)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a2dc4b1c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a2dc4b1c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a2dc4b1c

Branch: refs/heads/master
Commit: a2dc4b1ca96b5aceb7c0a76b1cf578445324f6c9
Parents: eb5099a
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Thu Aug 1 16:42:28 2013 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Thu Aug 1 16:43:25 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_vpc_network.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a2dc4b1c/test/integration/component/test_vpc_network.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_vpc_network.py b/test/integration/component/test_vpc_network.py
index 03ff71e..4e6c02c 100644
--- a/test/integration/component/test_vpc_network.py
+++ b/test/integration/component/test_vpc_network.py
@@ -2283,7 +2283,9 @@ class TestVPCNetworkGc(cloudstackTestCase):
                                   )
         for vm in vms:
             if vm.state == "Stopped":
-                vm.start(self.apiclient)
+                cmd = startVirtualMachine.startVirtualMachineCmd()
+                cmd.id = vm.id
+                self.apiclient.startVirtualMachine(cmd)
         return
 
     def validate_vpc_offering(self, vpc_offering):


Mime
View raw message