summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Pepple <ken.pepple@gmail.com>2011-03-10 17:00:58 +0000
committerTarmac <>2011-03-10 17:00:58 +0000
commit044b39e6e7fa81b54cb15176db113ddcc06c4a74 (patch)
tree75e341c8ed90a395cebc293a70558b43e6b2369d
parentacbc0f597f6183fc856f82b07392ddd4a61393f7 (diff)
parent9822af58162dc520c4a17646a013560e422efcf9 (diff)
downloadnova-044b39e6e7fa81b54cb15176db113ddcc06c4a74.tar.gz
nova-044b39e6e7fa81b54cb15176db113ddcc06c4a74.tar.xz
nova-044b39e6e7fa81b54cb15176db113ddcc06c4a74.zip
initializing instance power state on launch to 0 (fixes EC2 API bug)
-rw-r--r--nova/compute/api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 301f9ee18..f5638ba0b 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -165,6 +165,7 @@ class API(base.Base):
'image_id': image_id,
'kernel_id': kernel_id or '',
'ramdisk_id': ramdisk_id or '',
+ 'state': 0,
'state_description': 'scheduling',
'user_id': context.user_id,
'project_id': context.project_id,