fog/fog — Issue #714: AWS.collections fails with ArgumentError
Author: ryansch
Created: 2012-01-27 15:32:55+00:00
State: open

I've just fired up fog for the first time with the `fog` command line tool. The structure page on the fog website suggests that I run `AWS.collections` to see what's available. This command fails with the following output:

>> AWS.collections
[WARNING] AWS[:cdn] is not recommended, use CDN[:aws] for portability
[WARNING] AWS[:compute] is not recommended, use Comptue[:aws] for portability
[WARNING] AWS[:dns] is not recommended, use DNS[:aws] for portability
ArgumentError: Unrecognized service: :sts
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin/aws.rb:90:in `block in []'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin/aws.rb:93:in `yield'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin/aws.rb:93:in `default'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin/aws.rb:93:in `[]'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin.rb:47:in `block in collections'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin.rb:47:in `map'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/lib/fog/bin.rb:47:in `collections'
from (irb):1:in `'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/bin/fog:52:in `block in '
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/bin/fog:52:in `catch'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/gems/fog-1.1.2/bin/fog:52:in `'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/bin/fog:19:in `load'
from /root/rds_db_tool/vendor/bundle/ruby/1.9.1/bin/fog:19:in `

'