Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fix failure to write token info to YAML file [#41057685]
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Nugmanov and Max Brunsfeld committed Jan 24, 2013
1 parent c4e56df commit fc2daa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/vmc/cli/start/login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def login
end

info.merge!(auth_token.to_hash)
save_target_info(info)
invalidate_client

if v2?
Expand Down
1 change: 0 additions & 1 deletion spec/vmc/cli/start/login_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
stub_ask("Username", anything) { "my-username" }
stub_ask("8-digit PIN", anything) { "my-password" }
stub(client).login("my-username", "my-password") { auth_token }
stub(client).current_user { fake(:user) }
end

subject { vmc ["login", "--no-force"] }
Expand Down

0 comments on commit fc2daa9

Please sign in to comment.