diff --git a/main.go b/main.go index 025f76ba7..16ec61b41 100644 --- a/main.go +++ b/main.go @@ -37,6 +37,9 @@ func main() { // realMain is executed from main and returns the exit status to exit with. func realMain() int { var wrapConfig panicwrap.WrapConfig + // When following env variable is set, packer + // wont panic wrap itself as it's already wrapped. + // i.e.: when terraform runs it. wrapConfig.CookieKey = "PACKER_WRAP_COOKIE" wrapConfig.CookieValue = "49C22B1A-3A93-4C98-97FA-E07D18C787B5"