device: fix handling if DHCP hostname for configure-and-quit

Fixes: 5149fd120d
(cherry picked from commit 1dae47e9cc)
This commit is contained in:
Dan Williams 2015-03-12 14:38:01 -05:00
parent 2da6daea17
commit a8833a4dbd

View file

@ -7441,7 +7441,7 @@ nm_device_spawn_iface_helper (NMDevice *self)
}
hostname = nm_dhcp_client_get_hostname (priv->dhcp4_client);
if (client_id) {
if (hostname) {
g_ptr_array_add (argv, g_strdup ("--dhcp4-hostname"));
g_ptr_array_add (argv, g_strdup (hostname));
}