diff --git a/swift/obj/diskfile.py b/swift/obj/diskfile.py index 2ba0516c2b..bddde6af84 100644 --- a/swift/obj/diskfile.py +++ b/swift/obj/diskfile.py @@ -2324,7 +2324,7 @@ class BaseDiskFile(object): @classmethod def from_hash_dir(cls, mgr, hash_dir_path, device_path, partition, policy): - return cls(mgr, device_path, None, partition, _datadir=hash_dir_path, + return cls(mgr, device_path, partition, _datadir=hash_dir_path, policy=policy) def open(self, modernize=False, current_time=None):