Skip to content

Commit 3168a10

Browse files
committed
Do not automatically restart NM after static configuration
NM changes happen at runtime and automatically restarting it just wastes time and introduces more options to fail without providing any benefit. Related issue: https://progress.opensuse.org/issues/169531
1 parent 7039781 commit 3168a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mm_network.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ sub setup_static_mm_network {
228228
configure_static_ip(ip => $ip, is_nm => $is_nm);
229229
configure_default_gateway(is_nm => $is_nm);
230230
configure_static_dns(get_host_resolv_conf(), is_nm => $is_nm);
231-
restart_networking(is_nm => $is_nm);
231+
restart_networking(is_nm => $is_nm) unless $is_nm;
232232
}
233233

234234
sub restart_networking {

0 commit comments

Comments
 (0)