Skip to content

Commit

Permalink
Force keyscan to use ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
yanpliu authored and pondrejk committed Feb 8, 2024
1 parent 1c4a1a7 commit 9b4e68c
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 9b4e68c

Please sign in to comment.