Browse Source

Fixed issue with docker store deletion (#366)

- We were passing the wrong file name to File.Delete
- Check for file existance before deletion as well.
davidfowl/aspnet-urls
David Fowler 7 years ago
committed by GitHub
parent
commit
396b2d0356
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/Microsoft.Tye.Hosting/ReplicaRegistry.cs

7
src/Microsoft.Tye.Hosting/ReplicaRegistry.cs

@ -56,9 +56,14 @@ namespace Microsoft.Tye.Hosting
{
var filePath = Path.Join(_tyeFolderPath, GetStoreFile(storeName));
if (!File.Exists(filePath))
{
return false;
}
try
{
File.Delete(storeName);
File.Delete(filePath);
return true;
}
catch (DirectoryNotFoundException ex)

Loading…
Cancel
Save