diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-04 09:55:24 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-04 09:55:24 -0400 |
commit | d38bc7f1a745ab976b23a493cb5f275cccb5bc53 (patch) | |
tree | 93d71527f51a54f426b2d0c54fafc4c5a226324c /src | |
parent | 27fe40a049711305645c3738555cee86a01b02e9 (diff) | |
download | bcfg2-d38bc7f1a745ab976b23a493cb5f275cccb5bc53.tar.gz bcfg2-d38bc7f1a745ab976b23a493cb5f275cccb5bc53.tar.bz2 bcfg2-d38bc7f1a745ab976b23a493cb5f275cccb5bc53.zip |
FileProbes: escape literal % in probe code
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/FileProbes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/FileProbes.py b/src/lib/Bcfg2/Server/Plugins/FileProbes.py index b1930e203..f6009d8db 100644 --- a/src/lib/Bcfg2/Server/Plugins/FileProbes.py +++ b/src/lib/Bcfg2/Server/Plugins/FileProbes.py @@ -35,7 +35,7 @@ if not os.path.exists(path): try: stat = os.stat(path) except: - sys.stderr.write("Could not stat %%s: %%s" % (path, sys.exc_info()[1])) + sys.stderr.write("Could not stat %%s: %%s" %% (path, sys.exc_info()[1])) raise SystemExit(0) data = Bcfg2.Client.XML.Element("ProbedFileData", name=path, @@ -45,7 +45,7 @@ data = Bcfg2.Client.XML.Element("ProbedFileData", try: data.text = b64encode(open(path).read()) except: - sys.stderr.write("Could not read %%s: %%s" % (path, sys.exc_info()[1])) + sys.stderr.write("Could not read %%s: %%s" %% (path, sys.exc_info()[1])) raise SystemExit(0) print(Bcfg2.Client.XML.tostring(data, xml_declaration=False).decode('UTF-8')) """ |