Skip to content

Commit

Permalink
Merge pull request os-autoinst#15857 from pdostal/ansible_fix
Browse files Browse the repository at this point in the history
ansible: hostnamectl cut only the first part of domain
  • Loading branch information
foursixnine committed Nov 8, 2022
2 parents b26877c + d0fb812 commit 085c1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/console/ansible.pm
Expand Up @@ -94,7 +94,7 @@ sub run {
# Check Ansible version
record_info('ansible --version', script_output('ansible --version'));

my $hostname = script_output(is_sle('=15-sp3') ? 'hostname -s' : 'hostnamectl hostname');
my $hostname = script_output(is_sle('=15-sp3') ? 'hostname -s' : 'hostnamectl hostname | cut -d. -f1');
validate_script_output 'ansible -m setup localhost | grep ansible_hostname', sub { m/$hostname/ };

my $arch = get_var 'ARCH';
Expand Down

0 comments on commit 085c1bd

Please sign in to comment.