summaryrefslogtreecommitdiffstats
path: root/lib/mapper
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mapper')
-rw-r--r--lib/mapper/label.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mapper/label.py b/lib/mapper/label.py
index 8591d7c..3298aea 100644
--- a/lib/mapper/label.py
+++ b/lib/mapper/label.py
@@ -10,12 +10,12 @@
#Parses policy rules, extracts targets, extracts policy properties
#Returns set of policy properties for each target in a dictionary object
#e.g., node_labels['VNF1'] = {label1, label2, ..., labeln}
-def extract_labels(tosca):
+def extract_labels(tpl):
node_labels = dict() #stores labels for each node
- if tosca.tpl.has_key('topology_template'):
- if tosca.tpl['topology_template'].has_key('policies'):
- policies = tosca.tpl['topology_template']['policies']
+ if tpl.has_key('topology_template'):
+ if tpl['topology_template'].has_key('policies'):
+ policies = tpl['topology_template']['policies']
else:
return node_labels
else: