From 08128fe7757b9ea7ccf0946cd96413a678d39bd4 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Mon, 18 May 2020 11:31:36 -0400 Subject: [PATCH] add omitempty to create_before_destroy no need to litter the state file with "create_before_destroy":false --- states/statefile/version4.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/states/statefile/version4.go b/states/statefile/version4.go index ca24cbb72..04701f49d 100644 --- a/states/statefile/version4.go +++ b/states/statefile/version4.go @@ -512,7 +512,7 @@ type instanceObjectStateV4 struct { Dependencies []string `json:"dependencies,omitempty"` - CreateBeforeDestroy bool `json:"create_before_destroy"` + CreateBeforeDestroy bool `json:"create_before_destroy,omitempty"` } // stateVersionV4 is a weird special type we use to produce our hard-coded