1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00
community.general/plugins
patchback[bot] 39a49e4d98
[PR #11314/b3c066b9 backport][stable-12] Adding scw_profile parameter to Scaleway module utilities. (#11337)
Adding scw_profile parameter to Scaleway module utilities. (#11314)

* Adding scw_profile parameter to Scaleway module utilities.

* Setting param name to profile for consistency and adding scw_profile as an alias.

* Adding changelog fragment.

* Forgot to import 'os' library.

* Type in variable type for Scaleway profile.

* Also forgot to include the yaml library, code taking from plugins/inventory/scaleway.py.

* Adding default 'profile' value of empty string and changing check to a length check.

* Treated wrong variable, checking XDG_CONFIG_HOME is a string.

* Explicitly setting default of environment path vars to empty strings instead of None.

* Letting ruff reformat the dict for 'profile'.

* Changes from code review.

* Fixing ruff formatting issue with error message.

* Properly catching PyYAML import issues.

* Adding PyYAML requirement when 'profile' is used.

* Ruff wants an extra line after the PyYAML import code.

* Fixing PyYAML dependency code as per review.

* Removing extraneous var declaration.

* Moving SCW_CONFIG loading to a function.

* Fixing type errors with os.getenv calls.

* Cannot send None to os.path.exists() or open().

* Oops, inversed logic!

* Setting os.getenv() default to empty string so it is never None.



* None check no longer needed as scw_config_path is never None.



---------


(cherry picked from commit b3c066b99f)

Co-authored-by: Greg Harvey <greg.harvey@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-12-28 21:24:54 +01:00
..
action [PR #11167/19757b3a backport][stable-12] Add type hints to action and test plugins and to plugin utils; fix some bugs, and improve input validation (#11191) 2025-11-23 08:36:34 +01:00
become Reformat everything. 2025-11-01 13:46:53 +01:00
cache [PR #11095/2b4333a0 backport][stable-12] Use raise from in plugins (#11129) 2025-11-12 21:00:39 +01:00
callback [stable-12] docs: migrate RTD URLs to docs.ansible.com (#11109) (#11175) 2025-11-19 18:22:29 +01:00
connection [PR #11199/22a4f8e2 backport][stable-12] Added support for Windows VM with Incus connection. (#11227) 2025-11-29 15:31:03 +01:00
doc_fragments [PR #11314/b3c066b9 backport][stable-12] Adding scw_profile parameter to Scaleway module utilities. (#11337) 2025-12-28 21:24:54 +01:00
filter [PR #11223/d550baac backport][stable-12] fix ruff case UP031 (#11226) 2025-11-29 14:16:53 +01:00
inventory [PR #11115/58bb1e7c backport][stable-12] fix ruff case B007 (#11131) 2025-11-12 21:58:36 +01:00
lookup [PR #11189/1c678f5c backport][stable-12] fix ruff case UP030 (#11195) 2025-11-23 08:58:57 +01:00
module_utils [PR #11314/b3c066b9 backport][stable-12] Adding scw_profile parameter to Scaleway module utilities. (#11337) 2025-12-28 21:24:54 +01:00
modules [PR #11332/280d269d backport][stable-12] fix: listen_ports_facts return no facts when using with podman (#11335) 2025-12-28 21:24:45 +01:00
plugin_utils [PR #11167/19757b3a backport][stable-12] Add type hints to action and test plugins and to plugin utils; fix some bugs, and improve input validation (#11191) 2025-11-23 08:36:34 +01:00
test [PR #11167/19757b3a backport][stable-12] Add type hints to action and test plugins and to plugin utils; fix some bugs, and improve input validation (#11191) 2025-11-23 08:36:34 +01:00