Skip to content

Commit ac9abe4

Browse files
committed
fix: don't panic
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent 6b85cfa commit ac9abe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisioner/terraform/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (e *executor) plan(ctx, killCtx context.Context, env, vars []string, logr l
311311
// When a prebuild claim attempt is made, log a warning if a resource is due to be replaced, since this will obviate
312312
// the point of prebuilding if the expensive resource is replaced once claimed!
313313
var (
314-
isPrebuildClaimAttempt = !destroy && metadata.PrebuildClaimForUserId != ""
314+
isPrebuildClaimAttempt = !destroy && metadata.GetPrebuildClaimForUserId() != ""
315315
reps []*proto.ResourceReplacements
316316
)
317317
if count := len(replacements); count > 0 && isPrebuildClaimAttempt {

0 commit comments

Comments
 (0)