Remove default SSHUsername in oracle-bmcs config

pull/4554/head
Andrew Pryde 9 years ago
parent 9728f890cf
commit 7dcd7cac47

@ -122,10 +122,6 @@ func NewConfig(raws ...interface{}) (*Config, error) {
} }
} }
if c.Comm.SSHUsername == "" {
c.Comm.SSHUsername = "opc"
}
var errs *packer.MultiError var errs *packer.MultiError
if es := c.Comm.Prepare(&c.ctx); len(es) > 0 { if es := c.Comm.Prepare(&c.ctx); len(es) > 0 {
errs = packer.MultiErrorAppend(errs, es...) errs = packer.MultiErrorAppend(errs, es...)

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

@ -40,6 +40,9 @@ func baseTestConfig() *Config {
"tenancy_ocid": "ocid1...", "tenancy_ocid": "ocid1...",
"fingerprint": "00:00...", "fingerprint": "00:00...",
"key_file": keyFile.Name(), "key_file": keyFile.Name(),
// Comm
"ssh_username": "opc",
}) })
// Once we have a config object they key file isn't re-read so we can // Once we have a config object they key file isn't re-read so we can

Loading…
Cancel
Save