diff options
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Probes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Probes.py b/src/lib/Bcfg2/Server/Plugins/Probes.py index 22cacde55..042146aa7 100644 --- a/src/lib/Bcfg2/Server/Plugins/Probes.py +++ b/src/lib/Bcfg2/Server/Plugins/Probes.py @@ -217,9 +217,9 @@ class Probes(Bcfg2.Server.Plugin.Plugin, pretty_print='true') try: datafile = open("%s/%s" % (self.data, 'probed.xml'), 'w') + datafile.write(data.decode('utf-8')) except IOError: self.logger.error("Failed to write probed.xml") - datafile.write(data.decode('utf-8')) def load_data(self): try: |