Horde: Also make stream devices nullable for responses

#jira none
#rnx
#preflight none

[CL 21482837 by Josh Engebretson in ue5-main branch]
This commit is contained in:
Josh Engebretson
2022-08-22 09:56:59 -04:00
parent e2ad264825
commit 3a85dbd033

View File

@@ -672,7 +672,7 @@ namespace Horde.Build.Devices
/// <summary>
/// StreamId to reserved device ids
/// </summary>
public Dictionary<string, List<string>> StreamDevices { get; set; } = null!;
public Dictionary<string, List<string>>? StreamDevices { get; set; }
/// <summary>
/// Constructor
@@ -685,7 +685,7 @@ namespace Horde.Build.Devices
Maintenance = maintenance == 0 ? null : maintenance;
Problem = problem == 0 ? null : problem;
Disabled = disabled == 0 ? null : disabled;
StreamDevices = streamDevices;
StreamDevices = streamDevices.Count == 0 ? null : streamDevices;
}
}