summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-16 00:37:54 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-16 00:37:54 +0000
commitff9e00c47ce25436867a6d583952aa35d9ec26a2 (patch)
tree93c09f169d4fe4fb344c6df4e28c7b8202e04f53 /src/lib/Server
parent25bb2fc4a40eafcb6f04e51c3152702ca7ff8987 (diff)
downloadbcfg2-ff9e00c47ce25436867a6d583952aa35d9ec26a2.tar.gz
bcfg2-ff9e00c47ce25436867a6d583952aa35d9ec26a2.tar.bz2
bcfg2-ff9e00c47ce25436867a6d583952aa35d9ec26a2.zip
fix base64 problem
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3453 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rwxr-xr-xsrc/lib/Server/Reports/importscript.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Reports/importscript.py b/src/lib/Server/Reports/importscript.py
index be7f59da6..23d233379 100755
--- a/src/lib/Server/Reports/importscript.py
+++ b/src/lib/Server/Reports/importscript.py
@@ -147,7 +147,7 @@ if __name__ == '__main__':
for r in statsdata.findall('.//Bad/*')+statsdata.findall('.//Extra/*')+statsdata.findall('.//Modified/*'):
if r.get('current_bdiff', False):
- rc_diff = binascii.b2a_base64(r.get('current_bdiff'))
+ rc_diff = binascii.a2b_base64(r.get('current_bdiff'))
else:
rc_diff = r.get('current_diff', '')
arguments = [r.get('owner', default=""), r.get('current_owner', default=""),
@@ -204,7 +204,7 @@ if __name__ == '__main__':
('Modified/*', modified_hash, 'reports_modified')]:
for x in statistics.findall(xpath):
if x.get('current_bdiff', False):
- xc_diff = binascii.b2a_base64(x.get('current_bdiff'))
+ xc_diff = binascii.a2b_base64(x.get('current_bdiff'))
else:
xc_diff = x.get('current_diff', '')