From af45ed266b22cefe4d94f1843536466828316414 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Fri, 13 Jul 2018 12:43:33 +0200 Subject: storyboard: fix stringbuffer bugs --- rumba/storyboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rumba/storyboard.py b/rumba/storyboard.py index f03a2e8..200cca7 100644 --- a/rumba/storyboard.py +++ b/rumba/storyboard.py @@ -45,7 +45,7 @@ import rumba.log as log try: from io import StringIO except ImportError: - import StringIO # Python 2 here + from StringIO import StringIO # Python 2 here logger = log.get_logger(__name__) @@ -1221,7 +1221,7 @@ class StoryBoard(_SBEntity): """ s = StringIO() self.write_script(s) - return s + return s.getvalue() def parse_script(self, buffer, clean=True): """ -- cgit v1.2.3 From 56ae5a1503fc9503bdf4a9902709f84fd3d6e99b Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Fri, 13 Jul 2018 12:43:55 +0200 Subject: irati: fix bug #59 --- rumba/prototypes/irati_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rumba/prototypes/irati_templates.py b/rumba/prototypes/irati_templates.py index 6e5932d..a6dd3c4 100644 --- a/rumba/prototypes/irati_templates.py +++ b/rumba/prototypes/irati_templates.py @@ -369,7 +369,7 @@ policy_translator = { 'routing': lambda d, v, p: ps_set( d["routingConfiguration"], "policySet", v, p), 'resource-allocator.pduftg': lambda d, v, p: ps_set( - d["resourceAllocatorConfiguration"], "policySet", v, p), + d["resourceAllocatorConfiguration"]["pduftgConfiguration"], "policySet", v, p), 'efcp.*.dtcp': None, 'efcp.*.dtp': None, } -- cgit v1.2.3