summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-10-26 19:41:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-10-26 19:41:30 +0000
commit1a0717d7e8adeebf719f4418ed8c5888c3741cef (patch)
treeb3c4dcf4b630c733cf0adf32a53892c312cc1aea /src
parent6c96c1137af7b16461b62e60b5e71c80e6e2d143 (diff)
downloadbcfg2-1a0717d7e8adeebf719f4418ed8c5888c3741cef.tar.gz
bcfg2-1a0717d7e8adeebf719f4418ed8c5888c3741cef.tar.bz2
bcfg2-1a0717d7e8adeebf719f4418ed8c5888c3741cef.zip
Improve pull error handling
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3872 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-admin4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index b913db6f8..9d7584d96 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -326,6 +326,10 @@ def do_pull(cfile, repopath, client, etype, ename):
elif 'current_bfile' in cfentry.attrib:
data = binascii.a2b_base64(cfentry.get('current_bfile'))
diff = False
+ else:
+ print "having trouble processing entry. Entry is:"
+ print lxml.etree.tostring(cfentry)
+ raise SystemExit, 1
if diff:
print "Located diff:\n %s" % diff