You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/builder/cloudstack/ssh.go

17 lines
304 B

package cloudstack
import (
"fmt"
"github.com/hashicorp/packer-plugin-sdk/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
}