Fix wrong conversion from project name to uuid
The transform_to => 'project_uuid' should transform a value between the following two formats. <project name> <=> AUTH_<project uuid> 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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user