From 2985cdc61305740e89110c49a60e916642345c57 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 16 Nov 2023 23:51:12 +0900 Subject: [PATCH] Fix wrong conversion from project name to uuid The transform_to => 'project_uuid' should transform a value between the following two formats. <=> AUTH_ However the existing logic adds unnecessary AUTH_ prefix when transforming the uuid format back to a project name. This removes the wrong AUTH_ prefix so that the value is transformed back to the original value. Change-Id: I2cba1d06d0c9f18ae2a9679592f3f95c82868a90 --- lib/puppet/provider/ironic_config/openstackconfig.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/ironic_config/openstackconfig.rb b/lib/puppet/provider/ironic_config/openstackconfig.rb index 979c7bba..40db9f29 100644 --- a/lib/puppet/provider/ironic_config/openstackconfig.rb +++ b/lib/puppet/provider/ironic_config/openstackconfig.rb @@ -23,6 +23,6 @@ Puppet::Type.type(:ironic_config).provide( properties = [uuid, '--column', 'name'] openstack = Puppet::Provider::Ironic::OpenstackRequest.new res = openstack.openstack_request('project', 'show', properties) - return "AUTH_#{res[:name]}" + return res[:name] end end