mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|storage] Added storage service to lib/fog/bin/openstack.rb
This commit is contained in:
parent
433985bfee
commit
e82ad3c07d
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,8 @@ class OpenStack < Fog::Bin
|
|||
Fog::Identity::OpenStack
|
||||
when :network
|
||||
Fog::Network::OpenStack
|
||||
when :storage
|
||||
Fog::Storage::OpenStack
|
||||
else
|
||||
raise ArgumentError, "Unrecognized service: #{key}"
|
||||
end
|
||||
|
@ -26,6 +28,9 @@ class OpenStack < Fog::Bin
|
|||
when :network
|
||||
Fog::Logger.warning("OpenStack[:network] is not recommended, use Network[:openstack] for portability")
|
||||
Fog::Network.new(:provider => 'OpenStack')
|
||||
when :storage
|
||||
Fog::Logger.warning("OpenStack[:storage] is not recommended, use Storage[:openstack] for portability")
|
||||
Fog::Network.new(:provider => 'OpenStack')
|
||||
else
|
||||
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue