summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-11-02 12:39:02 +0100
committerThomas Haller <thaller@redhat.com>2018-11-13 19:09:31 +0100
commitc51e63feb698447c5d91a06e0dcc3302845af452 (patch)
tree4f433c16ada59129686069a5e0d40c3fdacead89 /src/devices
parent581e1c3269d420f09b9f29d2afb7269642dfb854 (diff)
core: pass boot-id to nm_utils_stable_id_parse()
For testing purpose, it's bad to let nm_utils_stable_id_parse() directly access nm_utils_get_boot_id_str(). Instead, the function should have no side-effects. Since the boot-id is anyway cached, accessing it is cheap. Even if it likely won't be needed.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index d5a58f4a7..d30ab6ab8 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -1286,7 +1286,7 @@ _get_stable_id (NMDevice *self,
stable_type = nm_utils_stable_id_parse (stable_id,
nm_device_get_ip_iface (self),
- NULL,
+ nm_utils_get_boot_id_str (),
uuid,
&generated);