We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1491b79 commit 472853fCopy full SHA for 472853f
1 file changed
src/spring/azext_spring/migration/converter/base_converter.py
@@ -116,7 +116,7 @@ def _get_storage_unique_name(self, disk_props):
116
mount_path = self._get_storage_mount_path(disk_props)
117
access_mode = self._get_storage_access_mode(disk_props)
118
storage_unique_name = f"{storage_name}|{account_name}|{share_name}|{mount_path}|{access_mode}"
119
- hash_value = hashlib.md5(storage_unique_name.encode()).hexdigest()[:16] # Take first 16 chars of hash
+ hash_value = hashlib.sha256(storage_unique_name.encode()).hexdigest()[:16] # Take first 16 chars of hash
120
result = f"{storage_name}{hash_value}".replace("-", "").replace("_", "")
121
return result[:32] # Ensure total length is no more than 32
122
0 commit comments