Skip to content

Commit

Permalink
Merge pull request #427 from OctopusDeploy/bug-workerdiscover
Browse files Browse the repository at this point in the history
correct worker discover endpoint
  • Loading branch information
NickJosevski committed May 31, 2019
2 parents b810137 + bbd3a9c commit 8cc323f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public WorkerRepository(IOctopusAsyncRepository repository) : base(repository, "

public async Task<WorkerResource> Discover(string host, int port = 10933, DiscoverableEndpointType? type = null)
{
return await Client.Get<WorkerResource>(await Repository.Link("DiscoverMachine").ConfigureAwait(false), new { host, port, type }).ConfigureAwait(false);
return await Client.Get<WorkerResource>(await Repository.Link("DiscoverWorker").ConfigureAwait(false), new { host, port, type }).ConfigureAwait(false);
}

public Task<MachineConnectionStatus> GetConnectionStatus(WorkerResource worker)
Expand Down
2 changes: 1 addition & 1 deletion source/Octopus.Client/Repositories/WorkerRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public WorkerRepository(IOctopusRepository repository) : base(repository, "Worke

public WorkerResource Discover(string host, int port = 10933, DiscoverableEndpointType? type = null)
{
return Client.Get<WorkerResource>(Repository.Link("DiscoverMachine"), new { host, port, type });
return Client.Get<WorkerResource>(Repository.Link("DiscoverWorker"), new { host, port, type });
}

public MachineConnectionStatus GetConnectionStatus(WorkerResource machine)
Expand Down

0 comments on commit 8cc323f

Please sign in to comment.