diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-02-19 10:06:12 +0100 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-02-19 10:06:12 +0100 |
commit | 3433097891c4c34070682a33a80aed2e1d23afe5 (patch) | |
tree | 167e5c6a11d46652f82f875da4f2777264259776 /units/wireless | |
parent | c3c12150444c5b02f1dae6cf3b49f5280600c299 (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.pxu | 14 |
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 }} |