Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

"images" and "flavors" commands fail if the default provider / primary machine is not the rackspace machine #142

Open
CodeCommander opened this issue Aug 19, 2015 · 1 comment

Comments

@CodeCommander
Copy link

I have a Vagrantfile where the primary machine is a parallels vm machine (my dev machine) and the secondary machine is a rackspace cloud instance (my staging machine).

Calling either of these

 vagrant rackspace images list 
 vagrant --provider=rackspace rackspace images list 

Fails with the following error:

/Users/jeff/.vagrant.d/gems/gems/fog-core-1.32.1/lib/fog/core/service.rb:244:in `validate_options': Missing required arguments: rackspace_username, rackspace_api_key (ArgumentError)

As far as I can tell, this is happening because my api key is set in a provider :rackspace call but my default machine's provider is not rackspace so it never gets set. Trying to specifically specify the rackspace provider on the command line didn't seem to work either.

@CodeCommander
Copy link
Author

I was able to get this working by deleting my dev machine definition from the Vagrantfile, but that doesn't seem like a good longterm solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant