Fix few keywords on TOSCA policy

Fix few keywords to work further on the multiple policy support work

Change-Id: I22ed1e9263bab84ba7635d86c39ad18b6941467d
This commit is contained in:
sahdev zala
2017-01-14 21:11:25 -05:00
parent f0b547a3a9
commit 64afa7f2f6
3 changed files with 4 additions and 4 deletions

View File

@@ -20,9 +20,9 @@ from toscaparser.utils.validateutils import TOSCAVersionProperty
class PolicyType(StatefulEntityType):
'''TOSCA built-in policies type.'''
SECTIONS = (DERIVED_FROM, METADATA, PROPERTIES, VERSION, DESCRIPTION, TARGETS) = \
SECTIONS = (DERIVED_FROM, METADATA, PROPERTIES, VERSION, DESCRIPTION, TARGETS, TYPE) = \
('derived_from', 'metadata', 'properties', 'version',
'description', 'targets')
'description', 'targets', 'type')
def __init__(self, ptype, custom_def=None):
super(PolicyType, self).__init__(ptype, self.POLICY_PREFIX,

View File

@@ -66,7 +66,7 @@ topology_template:
requirement: host
capability: Container
condition:
constraint: utilization greater_than 50%
constraint: { greater_than: 50 }
period: 60
evaluations: 1
method: average

View File

@@ -1595,7 +1595,7 @@ heat-translator/master/translator/tests/data/custom_types/wordpress.yaml
requirement: host
capability: Container
condition:
constraint: utilization greater_than 50%
constraint: { greater_than: 50 }
period: 60
evaluations: 1
method : average