summaryrefslogtreecommitdiffstats
path: root/nfvparser/toscaparser/capabilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'nfvparser/toscaparser/capabilities.py')
-rw-r--r--nfvparser/toscaparser/capabilities.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nfvparser/toscaparser/capabilities.py b/nfvparser/toscaparser/capabilities.py
index c23ef72..1708fd8 100644
--- a/nfvparser/toscaparser/capabilities.py
+++ b/nfvparser/toscaparser/capabilities.py
@@ -16,10 +16,11 @@ from toscaparser.properties import Property
class Capability(object):
'''TOSCA built-in capabilities type.'''
- def __init__(self, name, properties, definition):
+ def __init__(self, name, properties, definition, custom_def):
self.name = name
self._properties = properties
self.definition = definition
+ self.custom_def = custom_def
def get_properties_objects(self):
'''Return a list of property objects.'''
@@ -30,7 +31,8 @@ class Capability(object):
props_def = self.definition.get_properties_def()
if props_def and name in props_def:
properties.append(Property(name, value,
- props_def[name].schema))
+ props_def[name].schema,
+ self.custom_def))
return properties
def get_properties(self):