Skip to content

Commit

Permalink
Merge pull request #87 from form3tech-oss/sergii-fix-cloudstack-host-…
Browse files Browse the repository at this point in the history
…restoring

fix: update cloudstack host-stop recover to work when all hosts are up
  • Loading branch information
sshutovskyi-f3 authored Jul 30, 2024
2 parents 97d3a04 + 135f551 commit c779ddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/chaosimpl/cloudstackhost/hoststop/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func (impl *Impl) Recover(ctx context.Context, index int, records []*v1alpha1.Re
}

if len(resp.Hosts) == 0 {
return v1alpha1.Injected, fmt.Errorf("no hosts returned matching criteria")
impl.Log.Info("no hosts returned matching criteria, nothing to recover")
return v1alpha1.NotInjected, nil
}

for _, h := range resp.Hosts {
Expand Down

0 comments on commit c779ddb

Please sign in to comment.