Skip to content

Commit

Permalink
Add requres manifest entry to wifi scanning (BugFix) (#1710)
Browse files Browse the repository at this point in the history
* Add requres manifest entry

* Import the manifest
  • Loading branch information
Hook25 authored Feb 6, 2025
1 parent cb40e3a commit 9a81f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/base/units/wireless/jobs.pxu
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

id: wireless/detect
category_id: com.canonical.plainbox::wireless
plugin: shell
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9a81f3b

Please sign in to comment.