don't use default panic wrap key

This commit is contained in:
Megan Marsh 2018-09-21 17:01:54 -07:00
parent ac30d516f7
commit 76c6d871a9
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ func main() {
// realMain is executed from main and returns the exit status to exit with. // realMain is executed from main and returns the exit status to exit with.
func realMain() int { func realMain() int {
var wrapConfig panicwrap.WrapConfig var wrapConfig panicwrap.WrapConfig
wrapConfig.CookieKey = "PACKER_WRAP_COOKIE"
wrapConfig.CookieValue = "49C22B1A-3A93-4C98-97FA-E07D18C787B5"
if !panicwrap.Wrapped(&wrapConfig) { if !panicwrap.Wrapped(&wrapConfig) {
// Generate a UUID for this packer run and pass it to the environment. // Generate a UUID for this packer run and pass it to the environment.