Commit 9c516a49 authored by Beniamino Galvani's avatar Beniamino Galvani

device: fix assertion failure when resolving hostname

nm_device_get_effective_ip_config_method() must called only on a
device with an applied connection. Fix assertion failure [1]:

  nm_device_get_effective_ip_config_method: assertion 'NM_IS_CONNECTION(connection)' failed

[1] http://faf.lab.eng.brq.redhat.com/faf/reports/20217/

Fixes: 09c83871 ('policy: use the hostname setting'):
parent 4e997d1b
Pipeline #259806 passed with stages
in 42 minutes and 37 seconds