Avoid Unhashable warning in api.rest.nova

A list object is not hashable. We need to pass a tuple object
which is hashable.

Change-Id: Iaccd527da65218e46ff8cad8963fd336d0138c25
Closes-Bug: #1738537
This commit is contained in:
Akihiro Motoki 2017-12-30 01:58:23 +09:00
parent 40b31c82db
commit 8373701bdf

View File

@ -51,7 +51,7 @@ class Features(generic.View):
@rest_utils.ajax() @rest_utils.ajax()
def get(self, request, name): def get(self, request, name):
"""Check if a specified feature is supported.""" """Check if a specified feature is supported."""
return api.nova.is_feature_available(request, [name]) return api.nova.is_feature_available(request, (name,))
@urls.register @urls.register