-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix new Proxmox Volume handling #8646
Fix new Proxmox Volume handling #8646
Conversation
Half of the string was incorrectly discarded
- Also converted `None` values into strings - Clashed with non-`str` values in documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix!
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8667 🤖 @patchback |
* proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit e1148e6)
@Lithimlin thanks for your contribution! |
#8667) Fix new Proxmox Volume handling (#8646) * proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit e1148e6) Co-authored-by: JL Euler <Lithimlin@users.noreply.github.com>
fixed group logic. Removed trailing spaces Type options of become plugins (ansible-collections#8623) Type options of become plugins. Type options of lookup plugins (ansible-collections#8626) Type options of lookup plugins. Type options of inventory plugins (ansible-collections#8625) Type options of inventory plugins. Type options of connection plugins (ansible-collections#8627) Type options of connection plugins. Type options of callback plugins (ansible-collections#8628) Type options of callback plugins. Various docs improvements (ansible-collections#8664) Various docs improvements. Fix new Proxmox Volume handling (ansible-collections#8646) * proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> pkgng - add option use_globs (default=true) (ansible-collections#8633) * pkgng - add option use_globs (default=true) ansible-collections#8632 * Fix lint. * Update changelogs/fragments/8632-pkgng-add-option-use_globs.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update tests/integration/targets/pkgng/tasks/install_single_package.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> Fix pipx tests (ansible-collections#8665) * fix pipx tests * enable pipx int tests * replace ansible-lint with pylint in pipx test * install jupyter in freebsd * replace jupyter with mkdocs in pipx test * adjust installed dependency for mkdocs * fix pipx_info tests as well Add TLS certs params to redis (ansible-collections#8654) * add tls params to redis * add PR number * add example * move doc to redis fragment * Update changelogs/fragments/8654-add-redis-tls-params.yml Co-authored-by: Felix Fontein <felix@fontein.de> * rm aliases and add version_added --------- Co-authored-by: Felix Fontein <felix@fontein.de> fixed pep8 errors changed group_access_level description as "not required"
fixed group logic. Removed trailing spaces Type options of become plugins (ansible-collections#8623) Type options of become plugins. Type options of lookup plugins (ansible-collections#8626) Type options of lookup plugins. Type options of inventory plugins (ansible-collections#8625) Type options of inventory plugins. Type options of connection plugins (ansible-collections#8627) Type options of connection plugins. Type options of callback plugins (ansible-collections#8628) Type options of callback plugins. Various docs improvements (ansible-collections#8664) Various docs improvements. Fix new Proxmox Volume handling (ansible-collections#8646) * proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> pkgng - add option use_globs (default=true) (ansible-collections#8633) * pkgng - add option use_globs (default=true) ansible-collections#8632 * Fix lint. * Update changelogs/fragments/8632-pkgng-add-option-use_globs.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update tests/integration/targets/pkgng/tasks/install_single_package.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> Fix pipx tests (ansible-collections#8665) * fix pipx tests * enable pipx int tests * replace ansible-lint with pylint in pipx test * install jupyter in freebsd * replace jupyter with mkdocs in pipx test * adjust installed dependency for mkdocs * fix pipx_info tests as well Add TLS certs params to redis (ansible-collections#8654) * add tls params to redis * add PR number * add example * move doc to redis fragment * Update changelogs/fragments/8654-add-redis-tls-params.yml Co-authored-by: Felix Fontein <felix@fontein.de> * rm aliases and add version_added --------- Co-authored-by: Felix Fontein <felix@fontein.de> fixed pep8 errors changed group_access_level description as "not required" fix required
fixed group logic. Removed trailing spaces Type options of become plugins (ansible-collections#8623) Type options of become plugins. Type options of lookup plugins (ansible-collections#8626) Type options of lookup plugins. Type options of inventory plugins (ansible-collections#8625) Type options of inventory plugins. Type options of connection plugins (ansible-collections#8627) Type options of connection plugins. Type options of callback plugins (ansible-collections#8628) Type options of callback plugins. Various docs improvements (ansible-collections#8664) Various docs improvements. Fix new Proxmox Volume handling (ansible-collections#8646) * proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> pkgng - add option use_globs (default=true) (ansible-collections#8633) * pkgng - add option use_globs (default=true) ansible-collections#8632 * Fix lint. * Update changelogs/fragments/8632-pkgng-add-option-use_globs.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update tests/integration/targets/pkgng/tasks/install_single_package.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> Fix pipx tests (ansible-collections#8665) * fix pipx tests * enable pipx int tests * replace ansible-lint with pylint in pipx test * install jupyter in freebsd * replace jupyter with mkdocs in pipx test * adjust installed dependency for mkdocs * fix pipx_info tests as well Add TLS certs params to redis (ansible-collections#8654) * add tls params to redis * add PR number * add example * move doc to redis fragment * Update changelogs/fragments/8654-add-redis-tls-params.yml Co-authored-by: Felix Fontein <felix@fontein.de> * rm aliases and add version_added --------- Co-authored-by: Felix Fontein <felix@fontein.de> fixed pep8 errors changed group_access_level description as "not required" fix required fix
* proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
* proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
* proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
This fixes two issues with the new proxmox volume handling (
disk_volume
andmount_volumes
):None
-type values into"None"
strings.build_volume()
method of the plugin, half of the built string was accidentally discarded.ISSUE TYPE
COMPONENT NAME
proxmox
ADDITIONAL INFORMATION
Here is a sample playbook to test the validity: