From 2590d3cfba4679656c5e29f71c90c1e2e597942b Mon Sep 17 00:00:00 2001 From: Bruceforce Date: Tue, 19 Mar 2019 17:22:25 +0100 Subject: [PATCH] ceph_volume: fix rstrip for python 3 Removing bytes literals since rstrip only supports type String or None. Signed-off-by: Bruceforce --- library/ceph_volume.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ceph_volume.py b/library/ceph_volume.py index 378f7a9d6..4d45551c3 100644 --- a/library/ceph_volume.py +++ b/library/ceph_volume.py @@ -630,8 +630,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=changed, )