mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
Changed DeviceFactory.GetSecret(SecretsPropertiesConfig data) to return an empty string instead of null on a failed retrieval
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user