Files
Packer-Cn/builder/triton/ssh.go
T

18 lines
328 B
Go
Raw Normal View History

2016-04-14 17:29:27 -07:00
package triton
import (
2018-01-19 16:18:44 -08:00
"github.com/hashicorp/packer/helper/multistep"
2016-04-14 17:29:27 -07:00
)
func commHost(state multistep.StateBag) (string, error) {
driver := state.Get("driver").(Driver)
machineID := state.Get("machine").(string)
machine, err := driver.GetMachineIP(machineID)
2016-04-14 17:29:27 -07:00
if err != nil {
return "", err
}
return machine, nil
}