mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 15:01:40 -04:00
Remove default SSHUsername in oracle-bmcs config
This commit is contained in:
@@ -122,10 +122,6 @@ func NewConfig(raws ...interface{}) (*Config, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if c.Comm.SSHUsername == "" {
|
||||
c.Comm.SSHUsername = "opc"
|
||||
}
|
||||
|
||||
var errs *packer.MultiError
|
||||
if es := c.Comm.Prepare(&c.ctx); len(es) > 0 {
|
||||
errs = packer.MultiErrorAppend(errs, es...)
|
||||
|
||||
@@ -28,6 +28,9 @@ func testConfig(accessConfFile *os.File) map[string]interface{} {
|
||||
|
||||
// Networking
|
||||
"subnet_ocid": "ocd1...",
|
||||
|
||||
// Comm
|
||||
"ssh_username": "opc",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,9 @@ func baseTestConfig() *Config {
|
||||
"tenancy_ocid": "ocid1...",
|
||||
"fingerprint": "00:00...",
|
||||
"key_file": keyFile.Name(),
|
||||
|
||||
// Comm
|
||||
"ssh_username": "opc",
|
||||
})
|
||||
|
||||
// Once we have a config object they key file isn't re-read so we can
|
||||
|
||||
Reference in New Issue
Block a user