Skip to content

Commit

Permalink
fix: state lock
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Jun 14, 2022
1 parent 99a79fe commit 5a2e97a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/mholt/archiver/v3 v3.5.1
github.com/mitchellh/go-homedir v1.1.0
github.com/otiai10/copy v1.7.0
github.com/outblocks/outblocks-plugin-go v0.0.0-20220607161633-1f493fa6148e
github.com/outblocks/outblocks-plugin-go v0.0.0-20220614134113-d21fb3ab33bd
github.com/pkg/errors v0.9.1
github.com/pterm/pterm v0.12.41
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6
github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo=
github.com/otiai10/mint v1.3.3 h1:7JgpsBaN0uMkyju4tbYHu0mnM55hNKVYLsXmwr15NQI=
github.com/otiai10/mint v1.3.3/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc=
github.com/outblocks/outblocks-plugin-go v0.0.0-20220607161633-1f493fa6148e h1:pnAmcMcHIrGnpsUmH8SJyRn+wdYwrDxcWnlQKRov6Tw=
github.com/outblocks/outblocks-plugin-go v0.0.0-20220607161633-1f493fa6148e/go.mod h1:Wnb50otE4YCKHxyxpnJi1G3iYVW5pnTAeLHpo3Mu0Lk=
github.com/outblocks/outblocks-plugin-go v0.0.0-20220614134113-d21fb3ab33bd h1:f3SuZ5gsCeEI5M71Ln57OOLMF2izCl74Vg0nJ6WteEw=
github.com/outblocks/outblocks-plugin-go v0.0.0-20220614134113-d21fb3ab33bd/go.mod h1:Wnb50otE4YCKHxyxpnJi1G3iYVW5pnTAeLHpo3Mu0Lk=
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
Expand Down
2 changes: 1 addition & 1 deletion pkg/actions/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func (d *Deploy) Run(ctx context.Context) error {
stateLock := d.opts.Lock
pluginLock := false

if d.cfg.State.Plugin() != nil && d.cfg.State.Plugin().HasAction(plugins.ActionLock) {
if stateLock && d.cfg.State.Plugin() != nil && d.cfg.State.Plugin().HasAction(plugins.ActionLock) {
pluginLock = true
stateLock = false
}
Expand Down

0 comments on commit 5a2e97a

Please sign in to comment.