]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph_key: fix rstrip for python 3
authorSébastien Han <seb@redhat.com>
Mon, 19 Nov 2018 08:56:45 +0000 (09:56 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 18 Feb 2019 16:39:38 +0000 (16:39 +0000)
Removing bytes literals since rstrip only supports type String or None.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit f5c2ca3710844f73960b5e3652c521de97fb3383)

library/ceph_key.py

index a5fd517c917a7a83b39f8b5636e046095eff6998..34a3b79b2591550f8991cd83affa179b767eb50a 100644 (file)
@@ -678,8 +678,8 @@ def run_module():
         end=str(endd),
         delta=str(delta),
         rc=rc,
-        stdout=out.rstrip(b"\r\n"),
-        stderr=err.rstrip(b"\r\n"),
+        stdout=out.rstrip("\r\n"),
+        stderr=err.rstrip("\r\n"),
         changed=True,
     )