Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Oct 7, 2024
1 parent cf2318c commit 68910d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CloudController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public async Task<Machine> CreateNewRunner(string arch, string size, string runn
.AppendLine(" - [ sh, -xc, 'bash /data/provision.sh']")
.ToString();

Server newSrv;
Server newSrv = null;
bool success = false;
List<eDataCenter> dataCenters =
[
Expand Down Expand Up @@ -184,6 +184,11 @@ public async Task<Machine> CreateNewRunner(string arch, string size, string runn

}

if (newSrv == null)
{
throw new Exception("Unable to spin up VM for " + name);
}

return new Machine
{
Id = newSrv.Id,
Expand Down

0 comments on commit 68910d0

Please sign in to comment.