Skip to content

Commit

Permalink
Don't wait on state change for required plugin (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroden84 authored Sep 8, 2023
1 parent 6972182 commit 9bd7398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func (api *API) waitUntilPluginChanged(instanceID int, pluginName string, enable
if err != nil {
return nil, err
}
if response["required"] != nil && response["required"] != false {
return response, nil
}
if response["enabled"] == enabled {
return response, nil
}
Expand Down

0 comments on commit 9bd7398

Please sign in to comment.