X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fhostmap.py;h=ccbea4bed9d8f4ea20acec7b73c35e1fbd7c4e4c;hb=e95344dbfcbe31fbe1cb489d484e37c464950004;hp=3d030e6c35c33df5f87c806559b40e6aeb9329e3;hpb=3c23b137553cc676568871aaff425456cda51fdd;p=nodemanager.git diff --git a/plugins/hostmap.py b/plugins/hostmap.py index 3d030e6..ccbea4b 100644 --- a/plugins/hostmap.py +++ b/plugins/hostmap.py @@ -71,7 +71,7 @@ def GetSlivers(data, config=None, plc=None): # remove anything between PREFIX and SUFFIX from contents - pattern = PREFIX + ".*" + SUFFIX + pattern = PREFIX + ".*" + SUFFIX + "\n" regex = re.compile(pattern, re.DOTALL) if regex.search(contents) != None: contents = regex.sub(hostmap, contents)