Skip to content

Commit

Permalink
Force keyscan to use ipv4 (#14017)
Browse files Browse the repository at this point in the history
Co-authored-by: yanpliu <[email protected]>
  • Loading branch information
pondrejk and yanpliu authored Feb 26, 2024
1 parent c3381a0 commit 226a1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest_fixtures/component/templatesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def git_pub_key(session_target_sat, git_port):
id = res.json()['id']
# add ssh key to known host
session_target_sat.execute(
f'ssh-keyscan -t rsa -p {git.ssh_port} {git.hostname} > {key_path}/known_hosts'
f'ssh-keyscan -4 -t rsa -p {git.ssh_port} {git.hostname} > {key_path}/known_hosts'
)
yield
res = requests.delete(
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/cli/test_templatesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_positive_update_templates_in_git(
'repo': url,
'branch': git_branch,
'organization-id': module_org.id,
'filter': 'Atomic Kickstart default',
'filter': 'User - Registered Users',
'dirname': dirname,
}
).split('\n')
Expand Down

0 comments on commit 226a1f0

Please sign in to comment.