2013-07-15 14:14:10 +09:00
|
|
|
package digitalocean
|
|
|
|
|
|
|
|
import (
|
2018-01-19 16:18:44 -08:00
|
|
|
"github.com/hashicorp/packer/helper/multistep"
|
2013-07-15 14:14:10 +09:00
|
|
|
)
|
|
|
|
|
2015-06-13 19:23:33 -04:00
|
|
|
func commHost(state multistep.StateBag) (string, error) {
|
2013-08-31 12:25:08 -07:00
|
|
|
ipAddress := state.Get("droplet_ip").(string)
|
2015-06-13 19:23:33 -04:00
|
|
|
return ipAddress, nil
|
2013-07-15 14:14:10 +09:00
|
|
|
}
|