1 Commits

Author SHA1 Message Date
John Wadleigh
f48d2aec9c Merge e0076ebc37 into 52d140895b 2024-09-09 17:16:54 +09:00
2 changed files with 1 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
---
bugfixes:
- synchronize - maintain proper formatting of the remote paths (https://github.com/ansible-collections/ansible.posix/pull/361).

View File

@@ -77,14 +77,7 @@ class ActionModule(ActionBase):
if self._host_is_ipv6_address(host):
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
return '%s%s:%s' % (user_prefix, host, path)
def _process_origin(self, host, path, user):