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):
|
class PolicyType(StatefulEntityType):
|
||||||
|
|
||||||
'''TOSCA built-in policies type.'''
|
'''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',
|
('derived_from', 'metadata', 'properties', 'version',
|
||||||
'description', 'targets')
|
'description', 'targets', 'type')
|
||||||
|
|
||||||
def __init__(self, ptype, custom_def=None):
|
def __init__(self, ptype, custom_def=None):
|
||||||
super(PolicyType, self).__init__(ptype, self.POLICY_PREFIX,
|
super(PolicyType, self).__init__(ptype, self.POLICY_PREFIX,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ topology_template:
|
|||||||
requirement: host
|
requirement: host
|
||||||
capability: Container
|
capability: Container
|
||||||
condition:
|
condition:
|
||||||
constraint: utilization greater_than 50%
|
constraint: { greater_than: 50 }
|
||||||
period: 60
|
period: 60
|
||||||
evaluations: 1
|
evaluations: 1
|
||||||
method: average
|
method: average
|
||||||
|
|||||||
@@ -1595,7 +1595,7 @@ heat-translator/master/translator/tests/data/custom_types/wordpress.yaml
|
|||||||
requirement: host
|
requirement: host
|
||||||
capability: Container
|
capability: Container
|
||||||
condition:
|
condition:
|
||||||
constraint: utilization greater_than 50%
|
constraint: { greater_than: 50 }
|
||||||
period: 60
|
period: 60
|
||||||
evaluations: 1
|
evaluations: 1
|
||||||
method : average
|
method : average
|
||||||
|
|||||||
Reference in New Issue
Block a user