Skip to content

Commit

Permalink
Merged PR 843968: management uri and workload uri fix
Browse files Browse the repository at this point in the history
For docker mode managementuri and workloaduri are not set
  • Loading branch information
ancaantochi committed May 17, 2018
1 parent 92a72ae commit dc7c142
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static async Task<int> MainAsync(IConfiguration configuration)

string mode;
Uri dockerUri;
Uri managementUri;
Uri workloadUri;
string managementUri;
string workloadUri;
string configSourceConfig;
string backupConfigFilePath;
int maxRestartCount;
Expand All @@ -76,8 +76,8 @@ public static async Task<int> MainAsync(IConfiguration configuration)
{
mode = configuration.GetValue("Mode", "docker");
dockerUri = new Uri(configuration.GetValue<string>("DockerUri"));
managementUri = new Uri(configuration.GetValue<string>(Constants.EdgeletManagementUriVariableName));
workloadUri = new Uri(configuration.GetValue<string>(Constants.EdgeletWorkloadUriVariableName));
managementUri = configuration.GetValue<string>(Constants.EdgeletManagementUriVariableName);
workloadUri = configuration.GetValue<string>(Constants.EdgeletWorkloadUriVariableName);
configSourceConfig = configuration.GetValue<string>("ConfigSource");
backupConfigFilePath = configuration.GetValue<string>("BackupConfigFilePath");
maxRestartCount = configuration.GetValue<int>("MaxRestartCount");
Expand Down Expand Up @@ -114,7 +114,7 @@ public static async Task<int> MainAsync(IConfiguration configuration)
case "iotedged":
string iothubHostname = configuration.GetValue<string>(Constants.IotHubHostnameVariableName);
string deviceId = configuration.GetValue<string>(Constants.DeviceIdVariableName);
builder.RegisterModule(new EdgeletModule(iothubHostname, edgeDeviceHostName, deviceId, managementUri, workloadUri, dockerAuthConfig, upstreamProtocol));
builder.RegisterModule(new EdgeletModule(iothubHostname, edgeDeviceHostName, deviceId, new Uri(managementUri), new Uri(workloadUri), dockerAuthConfig, upstreamProtocol));
break;

default:
Expand Down

0 comments on commit dc7c142

Please sign in to comment.