Fixing host address formatting for cluster run

This commit is contained in:
benbierens 2023-05-31 15:02:07 +02:00
parent 0ebe59ea2f
commit c22125201f
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 5 additions and 5 deletions

View File

@ -10,16 +10,16 @@ namespace DistTestCore
{
private readonly BaseLog log;
private readonly ITimeSet timeSet;
private readonly string ip;
private readonly string host;
private readonly int port;
private readonly string baseUrl;
private readonly TimeSpan? timeoutOverride;
public Http(BaseLog log, ITimeSet timeSet, string ip, int port, string baseUrl, TimeSpan? timeoutOverride = null)
public Http(BaseLog log, ITimeSet timeSet, string host, int port, string baseUrl, TimeSpan? timeoutOverride = null)
{
this.log = log;
this.timeSet = timeSet;
this.ip = ip;
this.host = host;
this.port = port;
this.baseUrl = baseUrl;
this.timeoutOverride = timeoutOverride;
@ -110,7 +110,7 @@ namespace DistTestCore
private string GetUrl()
{
return $"http://{ip}:{port}{baseUrl}";
return $"{host}:{port}{baseUrl}";
}
private void Log(string url, string message)

View File

@ -52,7 +52,7 @@ namespace KubernetesWorkflow
var host = config.Host.Replace("https://", "");
if (host.Contains(":"))
{
HostAddress = host.Substring(0, host.IndexOf(':'));
HostAddress = "http://" + host.Substring(0, host.IndexOf(':'));
}
else
{