Skip to content

Commit

Permalink
ansible: hostnamectl cut only the first part of domain
Browse files Browse the repository at this point in the history
  • Loading branch information
pdostal committed Nov 8, 2022
1 parent b26877c commit d0fb812
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 d0fb812

Please sign in to comment.