mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 11:50:18 +01:00
checkpoint: skip unrealized devices in nm_checkpoint_manager_create()
We already do it for the case where no paths are provided.
This commit is contained in:
parent
6d6b389086
commit
daf3d5cb53
1 changed files with 5 additions and 0 deletions
|
|
@ -195,6 +195,11 @@ nm_checkpoint_manager_create (NMCheckpointManager *self,
|
|||
"device %s does not exist", *dev_paths);
|
||||
return NULL;
|
||||
}
|
||||
if (!nm_device_is_real (device)) {
|
||||
g_set_error (error, NM_MANAGER_ERROR, NM_MANAGER_ERROR_UNKNOWN_DEVICE,
|
||||
"device %s is not realized", *dev_paths);
|
||||
return NULL;
|
||||
}
|
||||
g_ptr_array_add (devices, device);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue