mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-26 19:41:06 -05:00
Remove default SSHUsername in oracle-bmcs config
This commit is contained in:
parent
9728f890cf
commit
7dcd7cac47
3 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue