1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 16:01:55 +00:00
community.general/plugins/doc_fragments
Greg Harvey b3c066b99f
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.

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

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

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-12-28 21:03:55 +01:00
..
alicloud.py Reformat everything. 2025-11-01 13:46:53 +01:00
attributes.py Reformat everything. 2025-11-01 13:46:53 +01:00
auth_basic.py Reformat everything. 2025-11-01 13:46:53 +01:00
bitbucket.py Reformat everything. 2025-11-01 13:46:53 +01:00
consul.py Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files (#10886) 2025-10-10 19:52:04 +02:00
dimensiondata.py Reformat everything. 2025-11-01 13:46:53 +01:00
dimensiondata_wait.py Reformat everything. 2025-11-01 13:46:53 +01:00
django.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
emc.py Reformat everything. 2025-11-01 13:46:53 +01:00
gitlab.py Reformat everything. 2025-11-01 13:46:53 +01:00
hpe3par.py Reformat everything. 2025-11-01 13:46:53 +01:00
hwc.py Reformat everything. 2025-11-01 13:46:53 +01:00
ibm_storage.py Reformat everything. 2025-11-01 13:46:53 +01:00
influxdb.py Reformat everything. 2025-11-01 13:46:53 +01:00
ipa.py Reformat everything. 2025-11-01 13:46:53 +01:00
keycloak.py Reformat everything. 2025-11-01 13:46:53 +01:00
ldap.py Reformat everything. 2025-11-01 13:46:53 +01:00
lxca_common.py Reformat everything. 2025-11-01 13:46:53 +01:00
manageiq.py Reformat everything. 2025-11-01 13:46:53 +01:00
nomad.py Reformat everything. 2025-11-01 13:46:53 +01:00
onepassword.py Reformat everything. 2025-11-01 13:46:53 +01:00
oneview.py Reformat everything. 2025-11-01 13:46:53 +01:00
online.py Reformat everything. 2025-11-01 13:46:53 +01:00
opennebula.py Reformat everything. 2025-11-01 13:46:53 +01:00
openswitch.py Reformat everything. 2025-11-01 13:46:53 +01:00
oracle.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
oracle_creatable_resource.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
oracle_display_name_option.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
oracle_name_option.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
oracle_tags.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
oracle_wait_options.py Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015) 2025-10-30 20:17:10 +01:00
pipx.py Reformat everything. 2025-11-01 13:46:53 +01:00
pritunl.py Reformat everything. 2025-11-01 13:46:53 +01:00
redfish.py Reformat everything. 2025-11-01 13:46:53 +01:00
redis.py Reformat everything. 2025-11-01 13:46:53 +01:00
rundeck.py Reformat everything. 2025-11-01 13:46:53 +01:00
scaleway.py Adding scw_profile parameter to Scaleway module utilities. (#11314) 2025-12-28 21:03:55 +01:00
scaleway_waitable_resource.py Reformat everything. 2025-11-01 13:46:53 +01:00
utm.py Reformat everything. 2025-11-01 13:46:53 +01:00
vexata.py Reformat everything. 2025-11-01 13:46:53 +01:00
xenserver.py Reformat everything. 2025-11-01 13:46:53 +01:00