From e3faa430bcc196ad8c24cc1031adbe7329acea0c Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Thu, 6 Dec 2018 10:26:23 +0000 Subject: ethernet: allow check static to be used on classic --- units/ethernet/jobs.pxu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu index cf684c0..cf1c02b 100644 --- a/units/ethernet/jobs.pxu +++ b/units/ethernet/jobs.pxu @@ -387,8 +387,12 @@ plugin: shell estimated_duration: 2s command: check_static {{ interface }} requires: + {%- if __on_ubuntucore__ %} snap.name == 'network-manager' connections.slot == 'network-manager:service' and connections.plug == '{{ __system_env__["SNAP_NAME"] }}:network-manager' + {%- else %} + executable.name == 'nmcli' + {% endif -%} plugin: shell category_id: com.canonical.plainbox::ethernet -- cgit v1.2.3