]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
gatherkeys: no need to decode - already done by remoto
authorAlfredo Deza <adeza@redhat.com>
Wed, 1 May 2019 13:35:52 +0000 (09:35 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 1 May 2019 18:12:29 +0000 (14:12 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: rm#39489

ceph_deploy/gatherkeys.py

index ebd415890b88bee680523e93be096ab2570050e6..2531a8b87ab60e4a7d194887bcd578cf34c0f302 100644 (file)
@@ -143,7 +143,7 @@ def gatherkeys_missing(args, distro, rlogger, keypath, keytype, dest_dir):
     keyring_path_local = os.path.join(dest_dir, keyring_name_local)
     with open(keyring_path_local, 'wb') as f:
         for line in out:
-            f.write(line + b'\n')
+            f.write(line.decode('utf-8') + '\n')
     return True
 
 
@@ -183,7 +183,7 @@ def gatherkeys_with_mon(args, host, dest_dir):
             rlogger.debug(line)
         return False
     try:
-        mon_status = json.loads(b''.join(out).decode('utf-8'))
+        mon_status = json.loads(''.join(out))
     except ValueError:
         rlogger.error('"ceph mon_status %s" output was not json', host)
         for line in out: