mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-13 17:52:10 -04:00
Merge pull request #4172 from rickard-von-essen/default-ssh-user
ssh: Remove ssh_username default values
This commit is contained in:
@@ -76,10 +76,6 @@ func NewConfig(raws ...interface{}) (*Config, error) {
|
||||
c.AsyncTimeout = 30 * time.Minute
|
||||
}
|
||||
|
||||
if c.Comm.SSHUsername == "" {
|
||||
c.Comm.SSHUsername = "root"
|
||||
}
|
||||
|
||||
if c.InstanceName == "" {
|
||||
c.InstanceName = fmt.Sprintf("packer-%s", uuid.TimeOrderedUUID())
|
||||
}
|
||||
|
||||
@@ -151,6 +151,7 @@ func testConfig(config map[string]interface{}) map[string]interface{} {
|
||||
"api_url": "https://cloudstack.com/client/api",
|
||||
"api_key": "some-api-key",
|
||||
"secret_key": "some-secret-key",
|
||||
"ssh_username": "root",
|
||||
"cidr_list": []interface{}{"0.0.0.0/0"},
|
||||
"network": "c5ed8a14-3f21-4fa9-bd74-bb887fc0ed0d",
|
||||
"service_offering": "a29c52b1-a83d-4123-a57d-4548befa47a0",
|
||||
|
||||
Reference in New Issue
Block a user