fix: separate diagnostics gui log and accept ntfs prefix alias
This commit is contained in:
@@ -467,10 +467,18 @@ namespace C4IT.LIAM
|
||||
|
||||
private string GetRequiredCustomTag(string key)
|
||||
{
|
||||
if (!CustomTags.TryGetValue(key, out var value))
|
||||
throw new InvalidOperationException($"Missing NTFS custom tag '{key}'.");
|
||||
if (CustomTags.TryGetValue(key, out var value) && !string.IsNullOrWhiteSpace(value))
|
||||
return value;
|
||||
|
||||
if (string.Equals(key, "Filesystem_GroupPrefixTag", StringComparison.OrdinalIgnoreCase)
|
||||
&& CustomTags.TryGetValue("ADGroupPrefix", out value)
|
||||
&& !string.IsNullOrWhiteSpace(value))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
throw new InvalidOperationException($"Missing NTFS custom tag '{key}'.");
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user