Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit a2e4ca7

Browse files
kaufersDavid Chung
authored andcommitted
Fix debug message when unable to get the terraform lock (#554)
Signed-off-by: Steven Kaufer <[email protected]>
1 parent 0d31702 commit a2e4ca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/instance/terraform/apply.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ func (p *plugin) terraformApply() error {
2626
if err := p.lock.TryLock(); err == nil {
2727
defer p.lock.Unlock()
2828
doTerraformApply(p.Dir)
29+
} else {
30+
log.Debugln("Can't acquire lock, waiting")
2931
}
30-
log.Debugln("Can't acquire lock, waiting")
3132
time.Sleep(time.Duration(int64(rand.NormFloat64())%1000) * time.Millisecond)
3233
}
3334
}()

0 commit comments

Comments
 (0)