From 4fe129a0ed7c9c255fc15695968f080e3c0d4352 Mon Sep 17 00:00:00 2001 From: Greg Harvey Date: Sun, 28 Dec 2025 21:03:20 +0100 Subject: [PATCH] Adding support for the Scaleway SCW_PROFILE environment variable. (#11311) * Adding support for the Scaleway SCW_PROFILE environment variable. * Adding changelog fragment. * Adding documentation for the environment variable. * Adding SCW_PROFILE as a proper environment variable via the DOCUMENTATION block. * Updating changelog fragment. --- changelogs/fragments/11311-scaleway-scw-profile-var.yml | 2 ++ plugins/inventory/scaleway.py | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/11311-scaleway-scw-profile-var.yml diff --git a/changelogs/fragments/11311-scaleway-scw-profile-var.yml b/changelogs/fragments/11311-scaleway-scw-profile-var.yml new file mode 100644 index 0000000000..95c19e6bfa --- /dev/null +++ b/changelogs/fragments/11311-scaleway-scw-profile-var.yml @@ -0,0 +1,2 @@ +minor_changes: + - scaleway inventory plugin - added support for ``SCW_PROFILE`` environment variable for the ``scw_profile`` option (https://github.com/ansible-collections/community.general/issues/11310, https://github.com/ansible-collections/community.general/pull/11311). diff --git a/plugins/inventory/scaleway.py b/plugins/inventory/scaleway.py index 70684fb0b8..289ee893cd 100644 --- a/plugins/inventory/scaleway.py +++ b/plugins/inventory/scaleway.py @@ -45,6 +45,9 @@ options: not defined. type: string version_added: 4.4.0 + env: + - name: SCW_PROFILE + version_added: 12.2.0 oauth_token: description: - Scaleway OAuth token.