Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@david-m-jenkins
Copy link
Contributor

SUMMARY

Fixes #10954

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • plugins/modules/pritunl_user.py
ADDITIONAL INFORMATION
- Avoid KeyError on missing keys
- Treat None list fields as []
- Fixes issue where an empty user_mac_address on the server user will break the module

@ansibullbot
Copy link
Collaborator

cc @Lowess
click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Oct 22, 2025
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-10 Automatically create a backport for the stable-10 branch backport-11 Automatically create a backport for the stable-10 branch labels Oct 22, 2025
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.

Thanks for your contribution! Can you add a changelog fragment? Thanks.

@felixfontein
Copy link
Collaborator

If nobody objects, I'll merge this in a few days.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Oct 29, 2025
@felixfontein felixfontein merged commit e84f59a into ansible-collections:main Oct 29, 2025
134 checks passed
@patchback
Copy link

patchback bot commented Oct 29, 2025

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/e84f59a62dc91ee4f2e497338b48e07b12a9e144/pr-10955

Backported as #11013

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

@felixfontein
Copy link
Collaborator

@david-m-jenkins thanks for your contribution!

patchback bot pushed a commit that referenced this pull request Oct 29, 2025
…ers (#10955)

* fix(pritunl_user): improve resilience to null or missing user parameters

* added changelog fragment - 10955

* standardize 10955 changelog fragment content

Co-authored-by: Felix Fontein <[email protected]>

* simplify user params comparison

Co-authored-by: Felix Fontein <[email protected]>

* simplify list fetch

Co-authored-by: Felix Fontein <[email protected]>

* simplify remote value retrieval

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: djenkins <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit e84f59a)
@patchback
Copy link

patchback bot commented Oct 29, 2025

Backport to stable-11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-11/e84f59a62dc91ee4f2e497338b48e07b12a9e144/pr-10955

Backported as #11014

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

patchback bot pushed a commit that referenced this pull request Oct 29, 2025
…ers (#10955)

* fix(pritunl_user): improve resilience to null or missing user parameters

* added changelog fragment - 10955

* standardize 10955 changelog fragment content

Co-authored-by: Felix Fontein <[email protected]>

* simplify user params comparison

Co-authored-by: Felix Fontein <[email protected]>

* simplify list fetch

Co-authored-by: Felix Fontein <[email protected]>

* simplify remote value retrieval

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: djenkins <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit e84f59a)
felixfontein added a commit that referenced this pull request Oct 29, 2025
…esilience to null or missing user parameters (#11014)

fix(pritunl_user): improve resilience to null or missing user parameters (#10955)

* fix(pritunl_user): improve resilience to null or missing user parameters

* added changelog fragment - 10955

* standardize 10955 changelog fragment content



* simplify user params comparison



* simplify list fetch



* simplify remote value retrieval



---------



(cherry picked from commit e84f59a)

Co-authored-by: David Jenkins <[email protected]>
Co-authored-by: djenkins <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
felixfontein added a commit that referenced this pull request Oct 29, 2025
…esilience to null or missing user parameters (#11013)

fix(pritunl_user): improve resilience to null or missing user parameters (#10955)

* fix(pritunl_user): improve resilience to null or missing user parameters

* added changelog fragment - 10955

* standardize 10955 changelog fragment content



* simplify user params comparison



* simplify list fetch



* simplify remote value retrieval



---------



(cherry picked from commit e84f59a)

Co-authored-by: David Jenkins <[email protected]>
Co-authored-by: djenkins <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-10 Automatically create a backport for the stable-10 branch backport-11 Automatically create a backport for the stable-10 branch bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

community.general.pritunl_user empty user_mac_address bug

3 participants