From e95344dbfcbe31fbe1cb489d484e37c464950004 Mon Sep 17 00:00:00 2001 From: smbaker Date: Mon, 14 Jan 2013 13:02:48 -0800 Subject: [PATCH] prevent extra newlines when hosts changes --- plugins/hostmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0