mirror of https://github.com/ceph/ceph-ansible.git
ceph_crush: fix rstrip for python 3
Removing bytes literals since rstrip only supports type String or None. Please backport to stable-3.2 Signed-off-by: Bruceforce <markus.greis@gmx.de>pull/3732/head
parent
3305309e87
commit
6d506dba1a
|
@ -145,7 +145,7 @@ def exec_commands(module, cmd_list):
|
||||||
Creates Ceph commands
|
Creates Ceph commands
|
||||||
'''
|
'''
|
||||||
for cmd in cmd_list:
|
for cmd in cmd_list:
|
||||||
rc, out, err = module.run_command(cmd, encoding=None)
|
rc, out, err = module.run_command(cmd)
|
||||||
return rc, cmd, out, err
|
return rc, cmd, out, err
|
||||||
|
|
||||||
|
|
||||||
|
@ -193,8 +193,8 @@ def run_module():
|
||||||
end=str(endd),
|
end=str(endd),
|
||||||
delta=str(delta),
|
delta=str(delta),
|
||||||
rc=rc,
|
rc=rc,
|
||||||
stdout=out.rstrip(b"\r\n"),
|
stdout=out.rstrip("\r\n"),
|
||||||
stderr=err.rstrip(b"\r\n"),
|
stderr=err.rstrip("\r\n"),
|
||||||
changed=True,
|
changed=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue