neutron_router: Prohibit updating project_id/name

We already prohibit updating tenant_id and tenant_name. Because
the provider does not have logic to handle the update, we should also
prohibit updating these properties.

Change-Id: Iabab109d21cd0a09a75e1fd06740f7360723af48
This commit is contained in:
Takashi Kajinami 2022-12-01 13:14:45 +09:00
parent 6798f5a0f8
commit dae8ec409c

View File

@ -215,6 +215,8 @@ Puppet::Type.type(:neutron_router).provide(
:availability_zone_hint, :availability_zone_hint,
:tenant_id, :tenant_id,
:tenant_name, :tenant_name,
:project_id,
:project_name
].each do |attr| ].each do |attr|
define_method(attr.to_s + "=") do |value| define_method(attr.to_s + "=") do |value|
fail("Property #{attr.to_s} does not support being updated") fail("Property #{attr.to_s} does not support being updated")