From 55b74ac2c17906380105d91d211d7e5713bb0f22 Mon Sep 17 00:00:00 2001 From: Anurag Dwivedi Date: Wed, 26 Apr 2017 03:08:14 -0400 Subject: [PATCH] NSR XPATH fix for rwconmantasklet Signed-off-by: Anurag Dwivedi --- .../rift/tasklets/rwconmantasklet/rwconman_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py index 4b010b6d..c3ef3e75 100644 --- a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py +++ b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py @@ -1360,11 +1360,13 @@ class XPaths(object): @staticmethod def nsr_config(k=None): - return ("C,/nsr:ns-instance-config/nsr:nsr[nsr:id='{}']".format(k) if k is not None else "") + return ("C,/nsr:ns-instance-config/nsr:nsr" + + ("[nsr:id='{}']".format(k) if k is not None else "")) @staticmethod def vlr(k=None): - return ("D,/vlr:vlr-catalog/vlr:vlr[vlr:id='{}']".format(k) if k is not None else "") + return ("D,/vlr:vlr-catalog/vlr:vlr" + + ("[vlr:id='{}']".format(k) if k is not None else "")) class ConfigManagerDTS(object): ''' This class either reads from DTS or publishes to DTS ''' -- 2.25.1