don't panic if the communicator is none and the port is 0
This commit is contained in:
parent
5d8a985f56
commit
c760e1323f
|
@ -45,7 +45,9 @@ func (s *StepSecurityGroup) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
|
|
||||||
port := s.CommConfig.Port()
|
port := s.CommConfig.Port()
|
||||||
if port == 0 {
|
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
|
// Create the group
|
||||||
|
|
Loading…
Reference in New Issue