modify test so that it accesses CommConfig the same way we really do within the driver

This commit is contained in:
Megan Marsh 2018-10-29 14:42:19 -07:00
parent 7d290a5df1
commit c3d6d45696
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ func TestESX5Driver_CommHost(t *testing.T) {
state := new(multistep.BasicStateBag)
sshConfig := SSHConfig{Comm: commConfig}
state.Put("sshConfig", &sshConfig)
driver := ESX5Driver{CommConfig: commConfig}
driver := ESX5Driver{CommConfig: *(&sshConfig.Comm)}
host, err := driver.CommHost(state)
if err != nil {