]> 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 16:29:30 +0000 (11:29 -0500)
commit661690857726de9a63abc3c9503f6bcae52cb975
tree523a6ff4911cd77cde4767cd0ac8f1b709342e5e
parent5a145103544a0a2e8dc6f4b835be227ed6b5baa5
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>
module_utils/ca_common.py
tests/module_utils/test_ca_common.py