From 9a81f3b5b84ed4201123f4ccd7faaecc8773bda4 Mon Sep 17 00:00:00 2001 From: Massimiliano Date: Thu, 6 Feb 2025 16:02:33 +0100 Subject: [PATCH] Add requres manifest entry to wifi scanning (BugFix) (#1710) * Add requres manifest entry * Import the manifest --- providers/base/units/wireless/jobs.pxu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/base/units/wireless/jobs.pxu b/providers/base/units/wireless/jobs.pxu index ef3060f375..ad21d4977c 100644 --- a/providers/base/units/wireless/jobs.pxu +++ b/providers/base/units/wireless/jobs.pxu @@ -1,4 +1,3 @@ - id: wireless/detect category_id: com.canonical.plainbox::wireless plugin: shell @@ -24,6 +23,7 @@ command: wifi_nmcli_test.py scan {{ interface }} plugin: shell category_id: com.canonical.plainbox::wireless +imports: from com.canonical.plainbox import manifest estimated_duration: 6 _purpose: Check system can find a wireless network AP nearby @@ -33,6 +33,7 @@ requires: connections.slot == 'network-manager:service' and connections.plug == '{{ __system_env__["SNAP_NAME"] }}:network-manager' {% endif -%} net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'NetworkManager' + manifest.has_wlan_adapter == 'True' unit: template template-resource: device