ansible-collections-openstack/plugins
Jakob Meng 73827a3d57 Do not remove trailing spaces when reading public key in keypair module
Previously, openstack.cloud.keypair would remove trailing spaces after
reading a public key from a file. The openstack cli tool, python-\
openstackclient, does not do so, i.e. it does not use rstrip to remove
spaces at the end [1]. This breaks idempotency when using openstack
cli tool and our keypair module at the same time.

The rstrip code was introduced to keypair when our modules were still
part of ansible (non-core) in a completely unrelated change [2].

Now, keypair module does no longer alter the public key and instead
uploads it unchanged to OpenStack API.

[1] 7df94c9f82/openstackclient/compute/v2/keypair.py (L103)
[2] 341efbf7ae

Story: 2008574
Task: 41726
Change-Id: Ia09658467d98516ca1ea612e7301629b2f69d2d1
2022-09-07 10:38:40 +00:00
..
doc_fragments Refactored server and server_info modules 2022-07-28 21:56:30 +02:00
inventory Fixed Python shebang and UTF-8 coding in modules 2022-07-28 10:03:09 +02:00
module_utils Refactored server and server_info modules 2022-07-28 21:56:30 +02:00
modules Do not remove trailing spaces when reading public key in keypair module 2022-09-07 10:38:40 +00:00