From 8373701bdf6a69752af60f62f52f538533962fe0 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sat, 30 Dec 2017 01:58:23 +0900 Subject: [PATCH] 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 --- openstack_dashboard/api/rest/nova.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/api/rest/nova.py b/openstack_dashboard/api/rest/nova.py index 27fea2ff7e..5d1d9e353d 100644 --- a/openstack_dashboard/api/rest/nova.py +++ b/openstack_dashboard/api/rest/nova.py @@ -51,7 +51,7 @@ class Features(generic.View): @rest_utils.ajax() def get(self, request, name): """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