projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3244563
)
More append_with_space quote fiddling.
author
Carl Hetherington
<cth@carlh.net>
Tue, 25 Aug 2015 23:21:42 +0000
(
00:21
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 25 Aug 2015 23:21:42 +0000
(
00:21
+0100)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index c62777945f264cb68b6c9411dca59c3950608ed4..f09bbb469b932ff884de5d1693b27f73e5aa1513 100755
(executable)
--- a/
cdist
+++ b/
cdist
@@
-347,13
+347,13
@@
class Target(object):
def append_with_space(self, k, v):
if (not k in self.variables) or len(self.variables[k]) == 0:
- self.variables[k] = v
+ self.variables[k] =
'"%s"' %
v
else:
e = self.variables[k]
if e[0] == '"' and e[-1] == '"':
self.variables[k] = '"%s %s"' % (e[1:-1], v)
else:
- self.variables[k] = '
%s %s
' % (e, v)
+ self.variables[k] = '
"%s %s"
' % (e, v)
def variables_string(self, escaped_quotes=False):
e = ''