Cleanup redundant want_version assignment.
This redundant line was added in [1], but we already introduced the want_version in line [2]. This patch remove the redundant line[2]. [1] https://review.openstack.org/#/c/521640/10/nova/api/openstack/placement/handlers/resource_provider.py@321 [2] https://review.openstack.org/#/c/521640/10/nova/api/openstack/placement/handlers/resource_provider.py@328 trivial_fix Change-Id: Ie008775384f8103214e21b39f3273f48f699fb65
This commit is contained in:
parent
b0d912d164
commit
86ce098780
@ -326,7 +326,6 @@ def update_resource_provider(req):
|
||||
context, uuid)
|
||||
|
||||
schema = PUT_RESOURCE_PROVIDER_SCHEMA
|
||||
want_version = req.environ[microversion.MICROVERSION_ENVIRON]
|
||||
if want_version.matches((1, 14)):
|
||||
schema = PUT_RP_SCHEMA_V1_14
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user