mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +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
|
||
|---|---|---|
| .. | ||
| alicloud.py | ||
| attributes.py | ||
| auth_basic.py | ||
| bitbucket.py | ||
| consul.py | ||
| dimensiondata.py | ||
| dimensiondata_wait.py | ||
| django.py | ||
| emc.py | ||
| gitlab.py | ||
| hpe3par.py | ||
| hwc.py | ||
| ibm_storage.py | ||
| influxdb.py | ||
| ipa.py | ||
| keycloak.py | ||
| ldap.py | ||
| lxca_common.py | ||
| manageiq.py | ||
| nomad.py | ||
| onepassword.py | ||
| oneview.py | ||
| online.py | ||
| opennebula.py | ||
| openswitch.py | ||
| oracle.py | ||
| oracle_creatable_resource.py | ||
| oracle_display_name_option.py | ||
| oracle_name_option.py | ||
| oracle_tags.py | ||
| oracle_wait_options.py | ||
| pipx.py | ||
| pritunl.py | ||
| redfish.py | ||
| redis.py | ||
| rundeck.py | ||
| scaleway.py | ||
| scaleway_waitable_resource.py | ||
| utm.py | ||
| vexata.py | ||
| xenserver.py | ||