From: Tomas Sedovic <[email protected]>
Calling `client.driver('rhevm').valid_provider_url?` used to return an array of
true/false values instead of a single boolean.
---
client/lib/base_object.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/lib/base_object.rb b/client/lib/base_object.rb
index fb9738f..5f63b5d 100644
--- a/client/lib/base_object.rb
+++ b/client/lib/base_object.rb
@@ -151,7 +151,7 @@ module DeltaCloud
return providers.any? { |p| p.keys.include? args.first.to_sym }
end
if method_name == :"valid_provider_url?"
- return providers.map { |p| !p.find { |k, v| v.find { |u| u[:url]
== args.first } }.nil? }
+ return providers.any? { |p| !p.find { |k, v| v.find { |u| u[:url]
== args.first } }.nil? }
end
super
else
--
1.7.6.5