]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Clarify a comment which says we require KeyName - which is incorrect
authorSteven Dake <sdake@redhat.com>
Fri, 31 May 2013 00:37:41 +0000 (17:37 -0700)
committerSteven Dake <sdake@redhat.com>
Fri, 31 May 2013 00:37:41 +0000 (17:37 -0700)
The Nova create API requires a name, image, and flavor.  The key_name
is not mandatory.  Possibly in AWS InstanceType (flavor) is not
mandatory but it is with Nova.

blueprint native-nova-instance

Change-Id: I6f5a77d7999ea4d8e91402ae215179b982a947f6

heat/engine/resources/instance.py

index 5fbc863016289acf66f0b7d261f96d2e15c9b44e..31ba372c0e7d5a6a1ba027f19ee4cc145968fcf8 100644 (file)
@@ -63,7 +63,8 @@ class Restarter(resource.Resource):
 
 
 class Instance(resource.Resource):
-    # AWS does not require KeyName and InstanceType but we seem to
+    # AWS does not require InstanceType but Heat does because the nova
+    # create api call requires a flavor
     tags_schema = {'Key': {'Type': 'String',
                            'Required': True},
                    'Value': {'Type': 'String',