mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
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
|
||
|---|---|---|
| .. | ||
| .keep | ||
| 12.2.0.yml | ||
| 11182-vxlan-parent-bridging.yml | ||
| 11240-btrfs-run-command.yml | ||
| 11242-deps-enum.yml | ||
| 11245-monit-enum.yml | ||
| 11255-monit-integrationtests.yml | ||
| 11256-fix-keycloak-roles-mapping.yml | ||
| 11258-iptables_state.yml | ||
| 11260-keycloak-realm-crash-when-no-realms.yml | ||
| 11265-fix-apk-3.yml | ||
| 11285-extended-keycloak-user-profile-validations.yml | ||
| 11309-keycloak-userprofile-selector-option.yml | ||
| 11314-scaleway-scw-profile-var-modules.yml | ||
| 11323-lxc-container-tempdir.yml | ||
| listen-ports-facts-return-no-facts.yml | ||
| private.yml | ||