aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-03-27 14:55:59 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-03-27 15:55:43 +0200
commit69e8cfaf01a4d7ca5a58971d516cadf672016f77 (patch)
tree2f042b47803fe62d94382fdf1c591aa27cfa83b0
parent9f8e20ad37364e3f557b67e7a84e62d6f81aa387 (diff)
downloadrumba-69e8cfaf01a4d7ca5a58971d516cadf672016f77.tar.gz
rumba-69e8cfaf01a4d7ca5a58971d516cadf672016f77.zip
irati: fix for da.map calling str(dif) instead of dif.name
fixes #42
-rw-r--r--rumba/prototypes/irati.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py
index 0807e10..b951d58 100644
--- a/rumba/prototypes/irati.py
+++ b/rumba/prototypes/irati.py
@@ -266,8 +266,8 @@ class Experiment(mod.Experiment):
if len(self.dif_ordering) > 0:
for adm in \
irati_templates.da_map_base["applicationToDIFMappings"]:
- adm["difName"] = "%s" % (self.dif_ordering[-1],)
- else:
+ adm["difName"] = "%s" % (self.dif_ordering[-1].name,)
+ else: # not yet supported
irati_templates.da_map_base["applicationToDIFMappings"] = []
for apm in app_mappings:
irati_templates.da_map_base["applicationToDIFMappings"]\