Proxmox inventory plugin - Fix tags parsing (#4378) (#4402)

* Proxmox inventory plugin - Fix tags parsing

  * In some cases the Proxmox API returns a tags string that consists in
    a single space. The Proxmox inventory plugin parsed that into a
    single, empty tag. Stripping the initial string then checking
    whether it actually contains something fixes that.
  * Do not call `_to_safe` on the concatenation of a known safe string
    and a string that was already made safe.

* Changelog fragment for Proxmox inventory plugin tags fix

* Proxmox inventory plugin - Include link to PR in fragment

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 622895fb55)

Co-authored-by: Emmanuel Benoît <tseeker@nocternity.net>
This commit is contained in:
patchback[bot] 2022-03-24 06:44:02 +00:00 committed by GitHub
commit 518af70b77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,4 @@
---
bugfixes:
- proxmox inventory plugin - fixed the ``tags_parsed`` field when Proxmox
returns a single space for the ``tags`` entry (https://github.com/ansible-collections/community.general/pull/4378).