summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-08-29 16:46:33 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-08-30 14:53:05 +0200
commit43abddf327209679d6a28191f026326d3cd17585 (patch)
treea5f6ff916aba7094e2c6c712cc844b4a37a6d821
parent6e9c1aeff169c044084407cb545cc62d2a81d1d3 (diff)
downloadNetworkManager-bg/device-realize-failed-rh1686634.tar.gz
manager: keep device if realize() failsbg/device-realize-failed-rh1686634
system_create_virtual_device() first creates the device (unrealized) and then, if there a connection for the device with autoconnect=yes, creates the backing resources. If this last step fails the device should continue to exist, even if in an unrealized state. https://bugzilla.redhat.com/show_bug.cgi?id=1686634
-rw-r--r--src/nm-manager.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 311bb68dd9..f6ef66bb21 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -2032,7 +2032,6 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
"couldn't create the device: %s",
error->message);
g_error_free (error);
- remove_device (self, device, FALSE);
return NULL;
}