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

(cherry picked from commit afe96974c3)

Co-authored-by: Peter Rowlands (변기호) <[email protected]>
This commit is contained in:
mergify[bot]
2020-12-23 13:17:08 +02:00
committed by GitHub
co-authored by Peter Rowlands
parent 1aa7e5dbec
commit 7a84c104fd
+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()`