mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-15 05:52:03 +00:00
Compare commits
1 Commits
8669afb72d
...
f48d2aec9c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f48d2aec9c |
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
bugfixes:
|
|
||||||
- synchronize - maintain proper formatting of the remote paths (https://github.com/ansible-collections/ansible.posix/pull/361).
|
|
||||||
@@ -77,14 +77,7 @@ class ActionModule(ActionBase):
|
|||||||
|
|
||||||
if self._host_is_ipv6_address(host):
|
if self._host_is_ipv6_address(host):
|
||||||
return '[%s%s]:%s' % (user_prefix, host, path)
|
return '[%s%s]:%s' % (user_prefix, host, path)
|
||||||
|
return '%s%s:%s' % (user_prefix, host, path)
|
||||||
# preserve formatting of remote paths if host or user@host is explicitly defined in the path
|
|
||||||
if ':' not in path:
|
|
||||||
return '%s%s:%s' % (user_prefix, host, path)
|
|
||||||
elif '@' not in path:
|
|
||||||
return '%s%s' % (user_prefix, path)
|
|
||||||
else:
|
|
||||||
return path
|
|
||||||
|
|
||||||
def _process_origin(self, host, path, user):
|
def _process_origin(self, host, path, user):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user