mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|Ecloud] Ecloud should not show up as a valid provider when not providing credentials
This commit is contained in:
parent
3a19598730
commit
f3e60762e8
2 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
class Ecloud < Fog::Bin
|
||||
class << self
|
||||
|
||||
def available?
|
||||
Fog::Ecloud::ECLOUD_OPTIONS.all? {|requirement| Fog.credentials.include?(requirement)}
|
||||
end
|
||||
|
||||
def class_for(key)
|
||||
case key
|
||||
when :compute
|
||||
|
|
|
@ -9,3 +9,9 @@ module Fog
|
|||
|
||||
end
|
||||
end
|
||||
|
||||
module Fog
|
||||
module Ecloud
|
||||
ECLOUD_OPTIONS = [:ecloud_authentication_method]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue