lock: fix AttributeError in dvc.lock.HardlinkLock (#5152)

This commit is contained in:
Peter Rowlands (변기호)
2020-12-23 16:03:59 +09:00
committed by GitHub
parent a6151eaf9e
commit afe96974c3
+1 -2
View File
@@ -148,9 +148,8 @@ class HardlinkLock(flufl.lock.Lock, LockBase):
): # pylint: disable=super-init-not-called
import socket
super().__init__(lockfile)
self._tmp_dir = tmp_dir
super().__init__(lockfile)
# NOTE: this is basically Lock.__init__ copy-paste, except that
# instead of using `socket.getfqdn()` we use `socket.gethostname()`