Add workaround for bug in Configuration 1.0.1

This commit is contained in:
Nate McMaster 2016-11-02 13:46:23 -07:00
parent 54031fb399
commit 3b0947b4af
No known key found for this signature in database
GPG Key ID: BD729980AA6A21BD
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ namespace Microsoft.Extensions.SecretManager.Tools.Internal
}
_secretsFilePath = PathHelper.GetSecretsPathFromSecretsId(userSecretsId);
// workaround bug in configuration
var secretDir = Path.GetDirectoryName(_secretsFilePath);
Directory.CreateDirectory(secretDir);
logger.LogDebug(Resources.Message_Secret_File_Path, _secretsFilePath);
_secrets = Load(userSecretsId);
}