summaryrefslogtreecommitdiff
path: root/units/wireless
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2018-02-19 10:06:12 +0100
committerSylvain Pineau <sylvain.pineau@canonical.com>2018-02-19 10:06:12 +0100
commit3433097891c4c34070682a33a80aed2e1d23afe5 (patch)
tree167e5c6a11d46652f82f875da4f2777264259776 /units/wireless
parentc3c12150444c5b02f1dae6cf3b49f5280600c299 (diff)
wireless: Don't create template instances if interface is "UNKNOWN"
Fixes lp:1749857
Diffstat (limited to 'units/wireless')
-rw-r--r--units/wireless/jobs.pxu14
1 files changed, 7 insertions, 7 deletions
diff --git a/units/wireless/jobs.pxu b/units/wireless/jobs.pxu
index 427596c..68056e5 100644
--- a/units/wireless/jobs.pxu
+++ b/units/wireless/jobs.pxu
@@ -1,6 +1,6 @@
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_scanning_{{ interface }}
@@ -21,7 +21,7 @@ requires:
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_connection_wpa_bg_nm_{{ interface }}
@@ -42,7 +42,7 @@ requires:
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_connection_open_bg_nm_{{ interface }}
@@ -63,7 +63,7 @@ requires:
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_connection_wpa_n_nm_{{ interface }}
@@ -85,7 +85,7 @@ requires:
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_connection_open_n_nm_{{ interface }}
@@ -107,7 +107,7 @@ requires:
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_connection_wpa_ac_nm_{{ interface }}
@@ -129,7 +129,7 @@ requires:
unit: template
template-resource: device
-template-filter: device.category == 'WIRELESS'
+template-filter: device.category == 'WIRELESS' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: wireless/wireless_connection_open_ac_nm_{{ interface }}