Megan Marsh 242f5b1c9f typos
2019-07-03 13:34:23 -07:00

17 lines
300 B
Go

package cloudstack
import (
"fmt"
"github.com/hashicorp/packer/helper/multistep"
)
func commPort(state multistep.StateBag) (int, error) {
commPort, hasPort := state.Get("commPort").(int)
if !hasPort {
return 0, fmt.Errorf("Failed to retrieve communication port")
}
return commPort, nil
}