Compare commits

...

4 commits

Author SHA1 Message Date
Vasiliy Gokoyev
6aaf9db357
Merge 12ecc3823b into 6473053b13 2024-01-09 16:42:54 +00:00
softwarefactory-project-zuul[bot]
6473053b13
Merge pull request #518 from bcoca/ci_fbsd132
update ci target for freebsd 13, r1 is eol

Current CI fails due to the  release_1/ dir returning 404, this will move to working release_2/ dir
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

CI
2024-01-08 20:11:06 +00:00
Brian Coca
046f6d1483 update ci target for freebsd 13, r1 is eol 2023-12-11 10:18:12 -05:00
k3it
12ecc3823b maintain proper formating of the remote paths when defined as user@host:/... or host:/...
fixes #360
2022-05-14 15:16:03 -04:00
2 changed files with 12 additions and 5 deletions

View file

@ -209,8 +209,8 @@ stages:
test: rhel/8.7 test: rhel/8.7
- name: RHEL 9.1 - name: RHEL 9.1
test: rhel/9.1 test: rhel/9.1
- name: FreeBSD 13.1 - name: FreeBSD 13.2
test: freebsd/13.1 test: freebsd/13.2
- name: FreeBSD 12.4 - name: FreeBSD 12.4
test: freebsd/12.4 test: freebsd/12.4
- stage: Remote_2_14 - stage: Remote_2_14
@ -225,8 +225,8 @@ stages:
test: rhel/7.9 test: rhel/7.9
- name: RHEL 8.6 - name: RHEL 8.6
test: rhel/8.6 test: rhel/8.6
- name: FreeBSD 13.1 - name: FreeBSD 13.2
test: freebsd/13.1 test: freebsd/13.2
- name: FreeBSD 12.4 - name: FreeBSD 12.4
test: freebsd/12.4 test: freebsd/12.4

View file

@ -77,7 +77,14 @@ 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)
#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) 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):