mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
Fix inconsistent/missing host names in messages.
This commit is contained in:
parent
fac3bac72e
commit
5fdc29e00f
5 changed files with 31 additions and 31 deletions
|
@ -263,11 +263,11 @@ class ConnectionBase(with_metaclass(ABCMeta, object)):
|
|||
|
||||
def connection_lock(self):
|
||||
f = self._play_context.connection_lockfd
|
||||
display.vvvv('CONNECTION: pid %d waiting for lock on %d' % (os.getpid(), f))
|
||||
display.vvvv('CONNECTION: pid %d waiting for lock on %d' % (os.getpid(), f), host=self._play_context.remote_addr)
|
||||
fcntl.lockf(f, fcntl.LOCK_EX)
|
||||
display.vvvv('CONNECTION: pid %d acquired lock on %d' % (os.getpid(), f))
|
||||
display.vvvv('CONNECTION: pid %d acquired lock on %d' % (os.getpid(), f), host=self._play_context.remote_addr)
|
||||
|
||||
def connection_unlock(self):
|
||||
f = self._play_context.connection_lockfd
|
||||
fcntl.lockf(f, fcntl.LOCK_UN)
|
||||
display.vvvv('CONNECTION: pid %d released lock on %d' % (os.getpid(), f))
|
||||
display.vvvv('CONNECTION: pid %d released lock on %d' % (os.getpid(), f), host=self._play_context.remote_addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue