diff --git a/manila/share/drivers/hpe/hpe_3par_driver.py b/manila/share/drivers/hpe/hpe_3par_driver.py index 46b2a5533a..c9c868af82 100644 --- a/manila/share/drivers/hpe/hpe_3par_driver.py +++ b/manila/share/drivers/hpe/hpe_3par_driver.py @@ -357,7 +357,7 @@ class HPE3ParShareDriver(driver.ShareDriver): source_file = inspect.getsourcefile(clazz) file_size = os.path.getsize(source_file) - sha1 = hashlib.sha1() + sha1 = hashlib.sha1(usedforsecurity=False) sha1.update(("blob %u\0" % file_size).encode('utf-8')) with open(source_file, 'rb') as f: