summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg213
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index aa8b0b8a3..909a8360a 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -188,12 +188,13 @@ class Client:
self.logger.error("Failed to Execute probes")
raise SystemExit, 1
- try:
- # upload probe responses
- proxy.RecvProbeData(Bcfg2.Client.XML.tostring(probedata))
- except:
- self.logger.error("Failed to upload probe data", exc_info=1)
- raise SystemExit, 1
+ if len(probes.findall(".//probe")) > 0:
+ try:
+ # upload probe responses
+ proxy.RecvProbeData(Bcfg2.Client.XML.tostring(probedata))
+ except:
+ self.logger.error("Failed to upload probe data", exc_info=1)
+ raise SystemExit, 1
times['probe_upload'] = time.time()