Don't rewrite remote paths when remote is secretly local (#40259)

* Don't rewrite remote paths when remote is secretly local

* Remote overriding is configurable in connection

* Use c.DEFAULT_LOCAL_TMP instead of remote_tmp

* Remove remote_is_local from ConnectionBase

* remote_is_local->_remote_is_local

* Add warning signs to _remote_is_local and explanatory comments to its use
This commit is contained in:
Nathaniel Case 2018-05-17 18:21:30 -04:00 committed by John R Barker
parent b12cf754f6
commit 90770a290f
3 changed files with 17 additions and 2 deletions

View file

@ -188,6 +188,8 @@ class Connection(ConnectionBase):
transport = 'network_cli'
has_pipelining = True
force_persistence = True
# Do not use _remote_is_local in other connections
_remote_is_local = True
def __init__(self, play_context, new_stdin, *args, **kwargs):
super(Connection, self).__init__(play_context, new_stdin, *args, **kwargs)