don't panic if the communicator is none and the port is 0

This commit is contained in:
Megan Marsh 2017-08-03 13:54:57 -07:00
parent 5d8a985f56
commit c760e1323f
1 changed files with 3 additions and 1 deletions

View File

@ -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