Skip to content

Commit

Permalink
Create mutex names that are safe for Linux (fixes #15653) (#15666)
Browse files Browse the repository at this point in the history
* Create mutex names that are usable in Linux

* Add changelog for bug #15653

* Update ChangeLog.md

Co-authored-by: Yabo Hu <[email protected]>
  • Loading branch information
jeepingben and VeryEarly authored Aug 16, 2021
1 parent 4eeda23 commit 3c7bec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
-->
## Upcoming Release
* Added new parameters `-SshKeyName` and `-GenerateSshKey` to `New-AzVM` to create a VM with SSH Key
* Added new parameters `-SshKeyName` and `-GenerateSshKey` to `New-AzVM` to create a VM with SSH
* Fixed a bug in `Add-AzVHD` on Linux that caused uploads to fail for certain destination URI

## Version 4.16.0
* Fixed the warning in `New-AzVM` cmdlet stating the sku of the VM is being defaulted even if a sku size is provided by the user. Now it only occurs when the user does not provide a sku size.
Expand Down
4 changes: 2 additions & 2 deletions src/Compute/Compute/Sync/Upload/BlobCreatorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private static string GetMutexName(Uri destinationBlobUri)
using (var md5 = MD5.Create())
{
byte[] hash = md5.ComputeHash(bytes);
return Convert.ToBase64String(hash);
return Convert.ToBase64String(hash).Replace('/', '_');
}
}

Expand Down Expand Up @@ -399,4 +399,4 @@ private static List<string> CompareFileMetaData(FileMetaData blobFileMetaData, F
return fileMetaDataMessages;
}
}
}
}

0 comments on commit 3c7bec2

Please sign in to comment.