Skip to content

Commit

Permalink
Print debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
b10n1k committed Feb 21, 2024
1 parent 1fcb0d6 commit 4b27c55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mm_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ sub configure_static_dns {
my $servers = join(" ", @{$conf->{nameserver}});

if ($is_nm) {
$nm_id = script_output('nmcli -t -f NAME c | grep -v ^lo: | head -n 1') unless ($nm_id);
record_info "nmcli out", script_output("nmcli -t -f NAME c | grep -v '^lo:'");
$nm_id = script_output("nmcli -t -f NAME c | grep -v '^lo:' | head -n 1") unless ($nm_id);

assert_script_run "nmcli connection modify '$nm_id' ipv4.dns '$servers'";
} else {
Expand Down

0 comments on commit 4b27c55

Please sign in to comment.