mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Small cleanup to use class attribute directly instead of property for transport names
This commit is contained in:
parent
fee73100c4
commit
de306eb5da
3 changed files with 3 additions and 13 deletions
|
@ -126,10 +126,7 @@ SFTP_CONNECTION_CACHE = {}
|
|||
class Connection(ConnectionBase):
|
||||
''' SSH based connections with Paramiko '''
|
||||
|
||||
@property
|
||||
def transport(self):
|
||||
''' used to identify this connection object from other classes '''
|
||||
return 'paramiko'
|
||||
transport = 'paramiko'
|
||||
|
||||
def _cache_key(self):
|
||||
return "%s__%s__" % (self._play_context.remote_addr, self._play_context.remote_user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue