From c760e1323f9ca1c21d5f0cb0b1127c6d83462f7b Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 3 Aug 2017 13:54:57 -0700 Subject: [PATCH] don't panic if the communicator is none and the port is 0 --- builder/amazon/common/step_security_group.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/amazon/common/step_security_group.go b/builder/amazon/common/step_security_group.go index 7e4071370..a5032772b 100644 --- a/builder/amazon/common/step_security_group.go +++ b/builder/amazon/common/step_security_group.go @@ -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