Browse Source

Check for volumev2 and volumev3 too

If we don't check for all three possible Cinder service types, we may
end up with Cinder options hidden even when the service is in fact
available.

Change-Id: Ic844dc7d3b138b0918f9c436f0550fe0a4379bae
Closes-Bug: #1678534
(cherry picked from commit ed4cb76aa2)
Jeremy Freudberg 1 year ago
parent
commit
8e8b93080d

+ 4
- 1
sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py View File

@@ -46,7 +46,10 @@ BASE_IMAGE_URL = "horizon:project:data_processing.clusters:register"
46 46
 
47 47
 
48 48
 def is_cinder_enabled(request):
49
-    return saharaclient.base.is_service_enabled(request, 'volume')
49
+    for service in ['volumev3', 'volumev2', 'volume']:
50
+        if saharaclient.base.is_service_enabled(request, service):
51
+            return True
52
+    return False
50 53
 
51 54
 
52 55
 def storage_choices(request):

Loading…
Cancel
Save