Skip to content

Commit

Permalink
Merge pull request #44 from stgraber/main
Browse files Browse the repository at this point in the history
resource/instance: Check PID not processes
  • Loading branch information
stgraber authored Mar 11, 2024
2 parents cb72206 + 2a2aa29 commit 4d5039c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/instance/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ func waitForState(ctx context.Context, refreshFunc retry.StateRefreshFunc, targe
// for virtual machines, which can report this metric only if the Incus agent has
// started and has established a connection to the Incus server.
func isInstanceOperational(s api.InstanceState) bool {
return isInstanceRunning(s) && s.Processes > 0
return isInstanceRunning(s) && s.Pid > 0
}

// isInstanceRunning returns true if its status is either "Running" or "Ready".
Expand Down

0 comments on commit 4d5039c

Please sign in to comment.