Remove default SSHUsername in oracle-bmcs config

This commit is contained in:
Andrew Pryde 2017-02-13 12:37:27 +00:00
parent 9728f890cf
commit 7dcd7cac47
3 changed files with 6 additions and 4 deletions

View file

@ -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...)

View file

@ -28,6 +28,9 @@ func testConfig(accessConfFile *os.File) map[string]interface{} {
// Networking
"subnet_ocid": "ocd1...",
// Comm
"ssh_username": "opc",
}
}

View file

@ -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