Fix typo in code

This change fixes typo from 'resouce_classes' to
'resource_classes' in delete api call.

Also adds missing dependency for webtest library.

Change-Id: If5135a67187deccec0834f2b2af5dc38f7c5a909
This commit is contained in:
Rajesh Tailor 2022-08-03 22:22:30 +05:30
parent a853993a1e
commit 67d9c3cc28
2 changed files with 2 additions and 1 deletions

View File

@ -318,7 +318,7 @@ class PlacementClient(object):
def delete_rc_by_name(self, context, name): def delete_rc_by_name(self, context, name):
"""Delete resource class from placement by name.""" """Delete resource class from placement by name."""
resp = self.delete( resp = self.delete(
"/resouce_classes/%s" % name, global_request_id=context.global_id) "/resource_classes/%s" % name, global_request_id=context.global_id)
if not resp: if not resp:
msg = ("Failed to delete resource class record with placement " msg = ("Failed to delete resource class record with placement "
"API for resource class %(rc_name)s. Got " "API for resource class %(rc_name)s. Got "

View File

@ -18,3 +18,4 @@ doc8>=0.6.0 # Apache-2.0
Pygments>=2.2.0 # BSD license Pygments>=2.2.0 # BSD license
os-resource-classes>=0.5.0 # Apache-2.0 os-resource-classes>=0.5.0 # Apache-2.0
cursive>=0.2.1 # Apache-2.0 cursive>=0.2.1 # Apache-2.0
WebTest>=2.0.27 # MIT