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/module_utils
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
..
identity/keycloak Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
mh Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
net_tools/pritunl Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
oracle Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
remote_management/lxca Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
source_control Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
storage Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
__init__.py Add __init__.py to work around ansible-test/pylint bug (#10926) 2025-10-15 21:42:55 +02:00
_filelock.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
_stormssh.py fix ruff case B007 (#11115) 2025-11-12 21:06:14 +01:00
alicloud_ecs.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
android_sdkmanager.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
btrfs.py btrfs module utils: pass command as list to run_command() (#11240) 2025-12-03 00:08:41 +13:00
cloud.py Deprecate unused module utils (#11205) 2025-11-25 06:50:06 +01:00
cmd_runner.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
cmd_runner_fmt.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
consul.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
csv.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
database.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
datetime.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
deps.py deps module util: use Enum to represent states (#11242) 2025-12-03 00:07:46 +13:00
dimensiondata.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
django.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gandi_livedns_api.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gconftool2.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gio_mime.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gitlab.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
heroku.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
homebrew.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
hwc_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
ibm_sa_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
ilo_redfish_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
influxdb.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
ipa.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
jenkins.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
known_hosts.py fix ruff case SIM110 (#11215) 2025-11-26 09:47:50 +13:00
ldap.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
linode.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
locale_gen.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
lxd.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
manageiq.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
memset.py Reformat everything. 2025-11-01 13:46:53 +01:00
module_helper.py Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13:00
ocapi_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
oneandone.py Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13:00
onepassword.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
oneview.py replace redundant to_native()/to_text() occurrences, batch 7 (#11112) 2025-11-13 10:38:29 +13:00
online.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
opennebula.py Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13:00
pacemaker.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
pipx.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
pkg_req.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
puppet.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
python_runner.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
redfish_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
redis.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
rundeck.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
saslprep.py Deprecate unused module utils (#11205) 2025-11-25 06:50:06 +01:00
scaleway.py Adding scw_profile parameter to Scaleway module utilities. (#11314) 2025-12-28 21:03:55 +01:00
snap.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
ssh.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
systemd.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
univention_umc.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
utm_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
vardict.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
version.py Reformat everything. 2025-11-01 13:46:53 +01:00
vexata.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
wdc_redfish_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
xdg_mime.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
xenserver.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
xfconf.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00