Files
puppet-openstacklib/spec/unit/provider/openstack_spec.rb
Tobias Urdin 864f02dda6 Replace Puppet::Util::withenv with custom version
... that filters out OS_* environment variables
from the existing copied ENV and then set the
passed environment variables to ENV and yield
to the openstack CLI call.

This has been a problem for a very long this
where if you source OS_* environment in your
shell and try to run Puppet the openstack CLI
calls executed by the Puppet modules will
pick up these environment variables causing
side effects such as `openstack token issue`
commands failing to test password for keystone_user
resources causing a `openstack uset set` command
even though the password has not changed.

Depends-On: https://review.opendev.org/c/openstack/puppet-openstack-integration/+/967058
Change-Id: Ic4f9d7f7e8faf5ba5caaade49f10789aa8dba864
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
2025-11-14 08:31:53 +00:00

11 KiB