Skip to content

Commit

Permalink
Fix some build warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sevensolutions committed Aug 23, 2024
1 parent 943c16e commit b2ad89a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

Expand All @@ -35,7 +35,7 @@ jobs:
# Upload the artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nomad_iis
path: ./dist
6 changes: 4 additions & 2 deletions src/NomadIIS/Services/IisTaskHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public async Task<DriverStateV1> RunAsync ( ILogger<DriverService> logger, TaskC
throw new ArgumentException( "Defining a root application with an empty alias is not allowed when using a target_website." );
}

await _owner.LockAsync( async serverManager =>
await _owner.LockAsync( serverManager =>
{
// Get a new port for the UDP logger
if ( config.EnableUdpLogging )
Expand Down Expand Up @@ -147,6 +147,8 @@ await _owner.LockAsync( async serverManager =>
}
_state.ApplicationAliases = config.Applications.Select( x => x.Alias ).ToList();
return Task.CompletedTask;
} );
}
catch ( Exception ex )
Expand Down Expand Up @@ -485,7 +487,7 @@ private static ApplicationPool CreateApplicationPool ( ServerManager serverManag

if ( udpLocalPort is not null && udpRemotePort is not null )
{
AddEnvironmentVariable( envVarsCollection, "NOMAD_STDOUT_UDP_REMOTE_PORT", udpRemotePort.ToString() );
AddEnvironmentVariable( envVarsCollection, "NOMAD_STDOUT_UDP_REMOTE_PORT", udpRemotePort.Value.ToString() );
AddEnvironmentVariable( envVarsCollection, "NOMAD_STDOUT_UDP_LOCAL_PORT", udpLocalPort.Value.ToString() );
}

Expand Down

0 comments on commit b2ad89a

Please sign in to comment.