Browse files

(#8140) Update fog validation instructions

This change updates the fog validation instructions for the getting
started with CloudPack guide.  If Fog is properly configured, but no
servers have been booted in EC2, the test will return 0.

This change updates the conditional to be >= 0 rather than > 0 and adds
additional information about what an improperly configured ~/.fog file
looks like.
  • Loading branch information...
1 parent 068c4c4 commit 2361c0b390d20c394caf1755b105998acfb21603 @jeffmccune committed Jun 29, 2011
Showing with 13 additions and 2 deletions.
  1. +13 −2 source/guides/cloud_pack_getting_started.markdown
@@ -67,9 +67,20 @@ For CloudPack to work, Fog needs to be configured with your AWS access key ID an
To test whether Fog is working, execute the following command:
- $ ruby -rubygems -e 'require "fog"' -e 'puts => "AWS").servers.length > 0'
+ $ ruby -rubygems -e 'require "fog"' -e 'puts => "AWS").servers.length >= 0'
-This should return "true."
+This should return "true"
+If you do not have the ~/.fog configuration file correct, you may receive an
+error such as the following. In this case, please verify your
+aws\_access\_key\_id and aws\_secret\_access\_key are properly set in the
+~/.fog file
+ fog-0.9.0/lib/fog/core/service.rb:155
+ in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)
+ from /Users/jeff/.rvm/gems/ruby-1.8.7-p334@puppet/gems/fog-0.9.0/lib/fog/core/service.rb:53:in `new'
+ from /Users/jeff/.rvm/gems/ruby-1.8.7-p334@puppet/gems/fog-0.9.0/lib/fog/compute.rb:13:in `new'
+ from -e:2
### EC2

0 comments on commit 2361c0b

Please sign in to comment.