We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1398007 commit 4623c23Copy full SHA for 4623c23
AzureWebFarm.OctopusDeploy/Infrastructure/OctopusDeploy.cs
@@ -77,6 +77,20 @@ private void HandleFailedRemoval()
77
}
78
79
public void DeleteMachine()
80
+ {
81
+ try
82
83
+ DeleteMachineInternal();
84
+ }
85
+ catch (Exception e)
86
87
+ Log.Error(e, "Initial attempt to remove machine from Octopus repository failed. Will retry 1 time.");
88
89
+ Log.Information("Successfully deleted machine from Octopus repository");
90
91
92
+
93
+ private void DeleteMachineInternal()
94
{
95
var machine = _repository.Machines.FindByName(_machineName);
96
_repository.Machines.Delete(machine);
0 commit comments