Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Fixed fetching warden config from API #18
Browse files Browse the repository at this point in the history
  • Loading branch information
spetz committed Sep 5, 2016
1 parent f6c9c50 commit cc42cf3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public WardenConfigurationManager(string apiUrl)

public async Task<object> GetConfigurationAsync(string id, string token)
{
var response = await _httpClient.GetAsync($"wardenconfigurations/{id}");
var response = await _httpClient.GetAsync($"warden/configurations/{id}?token={token}");
if (!response.IsSuccessStatusCode)
return null;

Expand Down
4 changes: 2 additions & 2 deletions src/Tools/Warden.Spawn.Tools.Host/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public static void Main(string[] args)

private static async Task<string> GetConfigurationAsync(string id, string token)
{
var service = new WardenConfigurationManager("http://localhost:20899/api/");
var configuration = await service.GetConfigurationAsync(id, token);
var wardenConfigurationManager = new WardenConfigurationManager("http://localhost:20899/");
var configuration = await wardenConfigurationManager.GetConfigurationAsync(id, token);
if (configuration == null)
return string.Empty;

Expand Down
2 changes: 1 addition & 1 deletion src/Warden.Spawn/Configurations/WardenSpawnFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Builder WithConfiguration(string configuration)
{
if (string.IsNullOrWhiteSpace(configuration))
{
throw new ArgumentNullException("Configuration types can not be empty.",
throw new ArgumentNullException("Configuration can not be empty.",
nameof(configuration));
}

Expand Down

0 comments on commit cc42cf3

Please sign in to comment.