You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/04/17 15:40:10 UTC
[PATCH core 31/32] Core: Replace driver_has_auth_features with more descriptive helper
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/views/instances/show.xml.haml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/views/instances/show.xml.haml b/server/views/instances/show.xml.haml
index b2fd5bf..3a62ed3 100644
--- a/server/views/instances/show.xml.haml
+++ b/server/views/instances/show.xml.haml
@@ -45,7 +45,7 @@
%storage_volumes<
- @instance.storage_volumes.each do |volume|
%storage_volume{:href=> storage_volume_url(volume.keys.first), :id => volume.keys.first, :device => volume.values.first}
- - if driver_has_auth_features?
+ - if driver.class.has_feature?(:authentication_key) or driver.class.has_feature?(:authentication_password)
%authentication{ :type => driver_auth_feature_name }
- if @instance.authn_feature_failed?
%error #{@instance.authn_error}
--
1.7.10