Changed DeviceFactory.GetSecret(SecretsPropertiesConfig data) to return an empty string instead of null on a failed retrieval

This commit is contained in:
Trevor Payne
2021-04-16 09:59:58 -05:00
parent 8643ed2caf
commit 452d0a5a39

View File

@@ -111,7 +111,7 @@ namespace PepperDash.Essentials.Core
Debug.Console(1, Debug.Console(1,
"Unable to retrieve secret {0}{1} - Make sure you've added it to the secrets provider", "Unable to retrieve secret {0}{1} - Make sure you've added it to the secrets provider",
data.Provider, data.Key); data.Provider, data.Key);
return null; return String.Empty;
} }
@@ -121,8 +121,7 @@ namespace PepperDash.Essentials.Core
/// </summary> /// </summary>
/// <param name="dc"></param> /// <param name="dc"></param>
/// <returns></returns> /// <returns></returns>
public static public static IKeyed GetDevice(DeviceConfig dc)
IKeyed GetDevice(DeviceConfig dc)
{ {
try try
{ {