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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user