summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Frame.py2
-rwxr-xr-xsrc/lib/Server/Reports/importscript.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index a2682d023..ecd4917a3 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -328,7 +328,7 @@ class Frame:
container.append(item)
if item.get('current_diff', False):
item.set('current_bdiff',
- binascii.a2b_base64(item.get('current_diff')))
+ binascii.b2a_base64(item.get('current_diff')))
item.set('current_diff', '')
timeinfo = Bcfg2.Client.XML.Element("OpStamps")
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', '')