Skip to content

Commit

Permalink
Default the flavor/image
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Mar 12, 2013
1 parent 27e3006 commit a325cda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-rackspace/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def initialize
def finalize!
@api_key = nil if @api_key == UNSET_VALUE
@endpoint = nil if @endpoint == UNSET_VALUE
@flavor = nil if @flavor == UNSET_VALUE
@image = nil if @image == UNSET_VALUE
@flavor = /512MB/ if @flavor == UNSET_VALUE
@image = /Ubuntu/ if @image == UNSET_VALUE
@username = nil if @username == UNSET_VALUE

if @public_key_path == UNSET_VALUE
Expand Down
4 changes: 2 additions & 2 deletions spec/vagrant-rackspace/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

its(:api_key) { should be_nil }
its(:endpoint) { should be_nil }
its(:flavor) { should be_nil }
its(:image) { should be_nil }
its(:flavor) { should eq(/512MB/) }
its(:image) { should eq(/Ubuntu/) }
its(:public_key_path) { should eql(vagrant_public_key) }
its(:username) { should be_nil }
end
Expand Down

0 comments on commit a325cda

Please sign in to comment.