git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c23b13
)
prevent extra newlines when hosts changes
author
smbaker
<smbaker@fc8clean.lan>
Mon, 14 Jan 2013 21:02:48 +0000
(13:02 -0800)
committer
smbaker
<smbaker@fc8clean.lan>
Mon, 14 Jan 2013 21:02:48 +0000
(13:02 -0800)
plugins/hostmap.py
patch
|
blob
|
history
diff --git
a/plugins/hostmap.py
b/plugins/hostmap.py
index
3d030e6
..
ccbea4b
100644
(file)
--- 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
# 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)
regex = re.compile(pattern, re.DOTALL)
if regex.search(contents) != None:
contents = regex.sub(hostmap, contents)