Skip to content

Commit 0487890

Browse files
author
Graeme Foster
committed
Unsure this helps
1 parent b005064 commit 0487890

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

AzureWebFarm.OctopusDeploy/Infrastructure/OctopusDeploy.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,6 @@ private void HandleFailedRemoval()
7777
}
7878

7979
public void DeleteMachine()
80-
{
81-
var remainingAttempts = 5;
82-
while (remainingAttempts > 0)
83-
{
84-
try
85-
{
86-
DeleteMachineInternal();
87-
return;
88-
}
89-
catch (Exception e)
90-
{
91-
remainingAttempts--;
92-
Log.Error(e, "Initial attempt to remove machine from Octopus repository failed. Will retry {attempts} time(s).", remainingAttempts);
93-
Thread.Sleep(TimeSpan.FromSeconds(3));
94-
}
95-
}
96-
}
97-
98-
private void DeleteMachineInternal()
9980
{
10081
var machine = _repository.Machines.FindByName(_machineName);
10182
_repository.Machines.Delete(machine);

0 commit comments

Comments
 (0)