| commit | fdd87abdd1d3bc7a87594a463344b1542e2650b4 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Thu Dec 07 18:03:21 2023 +0100 |
| committer | Tim Windelschmidt <tim@monogon.tech> | Mon Feb 19 14:00:17 2024 +0000 |
| tree | ac4b5a1bf2584611256c3a8903168bf33a05e799 | |
| parent | 968d72095a54aabed1a59cccf3591c4f32a7b70a [diff] [blame] |
cloud/shepherd: skip machines in failed state Currently we are not ignoring machines that are in failed state, which brings the provider to a stop as soon as a provision request fails. We should ignore such machines. Change-Id: I7be64c710cc15428f4d8d4e75b6df1e816d453f8 Reviewed-on: https://review.monogon.dev/c/monogon/+/2417 Reviewed-by: Serge Bazanski <serge@monogon.tech> Tested-by: Jenkins CI
diff --git a/cloud/shepherd/manager/provider_test.go b/cloud/shepherd/manager/provider_test.go index d1c6361..b08c8b7 100644 --- a/cloud/shepherd/manager/provider_test.go +++ b/cloud/shepherd/manager/provider_test.go
@@ -21,6 +21,10 @@ agentStarted bool } +func (dm *dummyMachine) Failed() bool { + return false +} + func (dm *dummyMachine) ID() shepherd.ProviderID { return dm.id }