Fix wrong property name in deprecation warning

This change fixes the wrong property name (project_id instead of
project_name) in deprecation warning messages introduced by
91c9bc3f33 .

Change-Id: If6e3afef57f1625c9bd4ee27aecf1e16c2862976
This commit is contained in:
Takashi Kajinami 2022-02-16 12:26:27 +09:00
parent 3d03306ae4
commit 781f8d6c8f
4 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ Puppet::Type.newtype(:neutron_network) do
warning('The tenant_id property is deprecated. Use project_id.')
end
if self[:tenant_name]
warning('The tenant_name property is deprecated. Use project_id.')
warning('The tenant_name property is deprecated. Use project_name.')
end
project_id = self[:tenant_id] or self[:project_id]

View File

@ -121,7 +121,7 @@ Puppet::Type.newtype(:neutron_port) do
warning('The tenant_id property is deprecated. Use project_id.')
end
if self[:tenant_name]
warning('The tenant_name property is deprecated. Use project_id.')
warning('The tenant_name property is deprecated. Use project_name.')
end
project_id = self[:tenant_id] or self[:project_id]

View File

@ -117,7 +117,7 @@ Puppet::Type.newtype(:neutron_router) do
warning('The tenant_id property is deprecated. Use project_id.')
end
if self[:tenant_name]
warning('The tenant_name property is deprecated. Use project_id.')
warning('The tenant_name property is deprecated. Use project_name.')
end
project_id = self[:tenant_id] or self[:project_id]

View File

@ -139,7 +139,7 @@ EOT
warning('The tenant_id property is deprecated. Use project_id.')
end
if self[:tenant_name]
warning('The tenant_name property is deprecated. Use project_id.')
warning('The tenant_name property is deprecated. Use project_name.')
end
project_id = self[:tenant_id] or self[:project_id]