From 2c1a690774dd4685e16c142684f6402e91a53858 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 19 Nov 2018 09:56:45 +0100 Subject: [PATCH] ceph_key: fix rstrip for python 3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Removing bytes literals since rstrip only supports type String or None. Signed-off-by: Sébastien Han (cherry picked from commit f5c2ca3710844f73960b5e3652c521de97fb3383) --- library/ceph_key.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ceph_key.py b/library/ceph_key.py index a5fd517c9..34a3b79b2 100644 --- a/library/ceph_key.py +++ b/library/ceph_key.py @@ -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, ) -- 2.39.5