Skip to content

Commit

Permalink
Merge pull request #154 from pearkes/change_default_user_to_root
Browse files Browse the repository at this point in the history
Change default user to 'root'
  • Loading branch information
petems committed Jan 31, 2015
2 parents 6453f14 + 997f7d4 commit 8ce6f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tugboat/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def create_config_file(client, api, ssh_key_path, ssh_user, ssh_port, region, im
end

if ssh_user.empty?
ssh_user = ENV['USER']
ssh_user = 'root'
end

if ssh_port.empty?
Expand Down
2 changes: 1 addition & 1 deletion spec/cli/authorize_cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
expect(config["defaults"]["image"]).to eq "9801950"
expect(config["defaults"]["region"]).to eq "8"
expect(config["defaults"]["size"]).to eq "66"
expect(config["ssh"]["ssh_user"]).to eq ENV["USER"]
expect(config["ssh"]["ssh_user"]).to eq 'root'
expect(config["ssh"]["ssh_key_path"]).to eq "~/.ssh/id_rsa2"
expect(config["ssh"]["ssh_port"]).to eq "22"
expect(config["defaults"]["ssh_key"]).to eq ""
Expand Down

0 comments on commit 8ce6f4e

Please sign in to comment.