diff options
author | Dan Williams <dcbw@redhat.com> | 2015-03-12 14:38:01 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2015-03-12 14:38:01 -0500 |
commit | 1dae47e9cc4c2ec43bcabf9fa8610acc0b6e257b (patch) | |
tree | b6c8895126e8d05f45a793f39e2df1cdbea658df | |
parent | 28983b705c1ee1cb90d4bc47d9cbb4dccf6c098a (diff) | |
download | NetworkManager-1dae47e9cc4c2ec43bcabf9fa8610acc0b6e257b.tar.gz |
device: fix handling if DHCP hostname for configure-and-quit
Fixes: 5149fd120d24e7622fb264fffaa4bed04eb579d6
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index c31b47667b..7a6113642b 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7602,7 +7602,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)); } |