Skip to content
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

[proxmox_vm_info] Return empty list when requested VM doesn't exist #7049

Merged

Conversation

UnderGreen
Copy link
Contributor

SUMMARY

Instead of failing when VM with provided name/vmid doesn't exist the module should have empty response. Than allows the workflows with checking VM existence.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

proxmox_vm_info

ADDITIONAL INFORMATION

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module plugins plugin (any type) tests tests unit tests/unit labels Jul 31, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 Automatically create a backport for the stable-7 branch labels Aug 2, 2023
plugins/modules/proxmox_vm_info.py Outdated Show resolved Hide resolved
plugins/modules/proxmox_vm_info.py Outdated Show resolved Hide resolved
plugins/modules/proxmox_vm_info.py Outdated Show resolved Hide resolved
@UnderGreen
Copy link
Contributor Author

@felixfontein can you please re-review the PR?

Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it was still in my line of "PRs to look at" tabs I haven't gotten to yet...

plugins/modules/proxmox_vm_info.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the below: are you happy with the current version? If yes, I'll merge it.

plugins/modules/proxmox_vm_info.py Outdated Show resolved Hide resolved
Co-authored-by: Felix Fontein <felix@fontein.de>
@UnderGreen
Copy link
Contributor Author

Yes. Hope it will be the last iteration for that module.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Aug 9, 2023
@felixfontein felixfontein merged commit 2089769 into ansible-collections:main Aug 9, 2023
151 checks passed
@patchback
Copy link

patchback bot commented Aug 9, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/2089769ccc18751fd763cb6054bdc6070969bd3b/pr-7049

Backported as #7079

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@UnderGreen thanks for your contribution!

patchback bot pushed a commit that referenced this pull request Aug 9, 2023
…7049)

* [proxmox_vm_info] Return empty list when requested VM doesn't exist

* Update documentation

* Add changelog fragment

* Address review comments

* Allow to filter by empty name

* Update plugins/modules/proxmox_vm_info.py

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 2089769)
felixfontein pushed a commit that referenced this pull request Aug 9, 2023
… list when requested VM doesn't exist (#7079)

[proxmox_vm_info] Return empty list when requested VM doesn't exist (#7049)

* [proxmox_vm_info] Return empty list when requested VM doesn't exist

* Update documentation

* Add changelog fragment

* Address review comments

* Allow to filter by empty name

* Update plugins/modules/proxmox_vm_info.py

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

---------

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

Co-authored-by: Sergei Antipov <greendayonfire@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 Automatically create a backport for the stable-7 branch feature This issue/PR relates to a feature request has_issue module module plugins plugin (any type) tests tests unit tests/unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants