Merge pull request #5217 from hashicorp/5213_port_related_null_communicator_crash

don't panic if the communicator is none and the port is 0
pull/4831/merge
Matthew Hooker 9 years ago committed by GitHub
commit b0774546b8

@ -45,7 +45,9 @@ func (s *StepSecurityGroup) Run(state multistep.StateBag) multistep.StepAction {
port := s.CommConfig.Port()
if port == 0 {
panic("port must be set to a non-zero value.")
if s.CommConfig.Type != "none" {
panic("port must be set to a non-zero value.")
}
}
// Create the group

Loading…
Cancel
Save