From 3433097891c4c34070682a33a80aed2e1d23afe5 Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Mon, 19 Feb 2018 10:06:12 +0100 Subject: wireless: Don't create template instances if interface is "UNKNOWN" Fixes lp:1749857 --- units/wireless/jobs.pxu | 14 +++++++------- 1 file 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 }} -- cgit v1.2.3