You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/02/29 11:12:27 UTC
git commit: Fix valid_provider_url? to return a boolean value
Updated Branches:
refs/heads/master a66340c71 -> a75ac34bc
Fix valid_provider_url? to return a boolean value
Calling `client.driver('rhevm').valid_provider_url?` used to return an array of
true/false values instead of a single boolean.
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/a75ac34b
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/a75ac34b
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/a75ac34b
Branch: refs/heads/master
Commit: a75ac34bc5dd4dc7c0943f8e0bbf956addb744a9
Parents: a66340c
Author: Tomas Sedovic <to...@sedovic.cz>
Authored: Fri Feb 24 16:13:35 2012 +0100
Committer: Michal fojtik <mf...@redhat.com>
Committed: Wed Feb 29 11:13:00 2012 +0100
----------------------------------------------------------------------
client/lib/base_object.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a75ac34b/client/lib/base_object.rb
----------------------------------------------------------------------
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