From 1415e281547a2139437b9fe42d02f61d9b2431bd Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:45:05 -0500 Subject: [PATCH] yml 6 --- .github/workflows/dotnet-build-componentclassregistry.yml | 2 +- dotnet/ComponentClassRegistry/Pcie/src/Pcie.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet-build-componentclassregistry.yml b/.github/workflows/dotnet-build-componentclassregistry.yml index e0cb69f..ab89f8c 100644 --- a/.github/workflows/dotnet-build-componentclassregistry.yml +++ b/.github/workflows/dotnet-build-componentclassregistry.yml @@ -66,7 +66,7 @@ jobs: - name: Artifacts uses: actions/upload-artifact@v4 with: - name: testArtifacts + name: testArtifacts.${{ matrix.os }} retention-days: 1 if-no-files-found: error path: | diff --git a/dotnet/ComponentClassRegistry/Pcie/src/Pcie.cs b/dotnet/ComponentClassRegistry/Pcie/src/Pcie.cs index 86a7dd5..2985f9f 100644 --- a/dotnet/ComponentClassRegistry/Pcie/src/Pcie.cs +++ b/dotnet/ComponentClassRegistry/Pcie/src/Pcie.cs @@ -56,6 +56,7 @@ private static bool CollectPcieWindows(IDictionary> devic case "0D11": // Ask NetAdapter for the permanent address. Task> task = Task.Run(() => PowershellMAC(pciDeviceInstanceId)); + task.Wait(5000); bool foundMac = ParseMacAddressFromResults(out string mac, task); if (foundMac) { device.NetworkMac = Convert.FromHexString(mac); @@ -120,6 +121,7 @@ private static bool CollectPcieLinux(IDictionary> devices case "0D11": // Ask ethtool for the permanent address. Task> task = Task.Run(() => EthtoolP(interfaceName)); + task.Wait(5000); bool foundMac = ParseMacAddressFromResults(out string mac, task); if (foundMac) { device.NetworkMac = Convert.FromHexString(mac); @@ -142,8 +144,6 @@ private static bool ParseMacAddressFromResults(out string mac, Task results = task.Result; mac = results.Item3;