summaryrefslogtreecommitdiff
path: root/cloudinit/cmd/devel/hotplug_hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/cmd/devel/hotplug_hook.py')
-rw-r--r--cloudinit/cmd/devel/hotplug_hook.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/cmd/devel/hotplug_hook.py b/cloudinit/cmd/devel/hotplug_hook.py
index d4f0547e..f6f36a00 100644
--- a/cloudinit/cmd/devel/hotplug_hook.py
+++ b/cloudinit/cmd/devel/hotplug_hook.py
@@ -8,6 +8,7 @@ import time
from cloudinit import log
from cloudinit import reporting
+from cloudinit import stages
from cloudinit.event import EventScope, EventType
from cloudinit.net import activators, read_sys_net_safe
from cloudinit.net.network_state import parse_net_config_data
@@ -164,7 +165,9 @@ def is_enabled(hotplug_init, subsystem):
subsystem)
) from e
- return hotplug_init.update_event_enabled(
+ return stages.update_event_enabled(
+ datasource=hotplug_init.datasource,
+ cfg=hotplug_init.cfg,
event_source_type=EventType.HOTPLUG,
scope=scope
)