Fix optional parameter for unattended (#425)

This commit is contained in:
Lokesh Gopu
2020-04-15 14:44:29 -04:00
committed by TingluoHuang
parent 6b3b42a840
commit 8d6acf2a7f
@@ -72,6 +72,10 @@ namespace GitHub.Runner.Listener.Configuration
{ {
return defaultValue; return defaultValue;
} }
else if (isOptional)
{
return string.Empty;
}
// Otherwise throw. // Otherwise throw.
throw new Exception($"Invalid configuration provided for {argName}. Terminating unattended configuration."); throw new Exception($"Invalid configuration provided for {argName}. Terminating unattended configuration.");