]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
module_utils: don't add newline to the data
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 14 Jan 2021 02:11:39 +0000 (21:11 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 18 Jan 2021 19:46:53 +0000 (14:46 -0500)
commitc4f11809c461f7ff10cd249875f1113489e17ac7
tree335f001e641290735d29511035cda3a4011b964d
parentfdda54eeb42a2404fd47b6e12d0af697bc32892a
module_utils: don't add newline to the data

When executing a command via the run_command method and passing some
data with stdin then the default behavior is to add append a newline.
This breaks the value of password used by our modules.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 661690857726de9a63abc3c9503f6bcae52cb975)
library/ceph_dashboard_user.py
tests/library/test_ceph_dashboard_user.py