From 25bfd4aa43937b4f3bf799792549855325b5c007 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 24 Sep 2018 16:24:43 +0200 Subject: [PATCH] document wrapConfig a little --- main.go | 3 +++ 1 file changed, 3 insertions(+) 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"