Skip to content

Commit

Permalink
Change default user to 'root'
Browse files Browse the repository at this point in the history
Closes #131
  • Loading branch information
petems committed Jan 31, 2015
1 parent 13c940b commit 997f7d4
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 @@ -99,7 +99,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 997f7d4

Please sign in to comment.