From a8833a4dbdafc7b4a5f3ce6021b9f203db2aefe7 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 12 Mar 2015 14:38:01 -0500 Subject: [PATCH] device: fix handling if DHCP hostname for configure-and-quit Fixes: 5149fd120d24e7622fb264fffaa4bed04eb579d6 (cherry picked from commit 1dae47e9cc4c2ec43bcabf9fa8610acc0b6e257b) --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index d4263de662..0c7a0f5e1d 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -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)); }