Skip to content

Commit 84c8607

Browse files
Stop using PlayContext.verbosity. (#626)
Signed-off-by: Felix Fontein <felix@fontein.de> Co-authored-by: Rohit Thakur <rohitthakur2590@outlook.com>
1 parent ecad124 commit 84c8607

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- libssh connection plugin - stop using deprecated ``PlayContext.verbosity`` property that is no longer present in ansible-core 2.18 (https://github.com/ansible-collections/ansible.netcommon/pull/626).

plugins/connection/libssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def _connect_uncached(self):
375375

376376
self.ssh = Session()
377377

378-
if self._play_context.verbosity > 3:
378+
if display.verbosity > 3:
379379
self.ssh.set_log_level(logging.INFO)
380380

381381
self.keyfile = os.path.expanduser("~/.ssh/known_hosts")

0 commit comments

Comments
 (0)