From 8c99262b24fdf3f9fbe5519c34ad2096ddd55ad2 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Wed, 22 May 2019 17:14:15 +0100 Subject: network_device_info: refactor with argparse Refactoring of the network_device_info which appears to have grown organically to the point where it is somewhat unreadable --- units/ethernet/jobs.pxu | 2 +- units/info/jobs.pxu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'units') diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu index b5f068a8..1a29e242 100644 --- a/units/ethernet/jobs.pxu +++ b/units/ethernet/jobs.pxu @@ -2,7 +2,7 @@ plugin: shell category_id: com.canonical.plainbox::ethernet id: ethernet/detect flags: also-after-suspend -command: network_device_info.py detect +command: network_device_info.py detect NETWORK estimated_duration: 2.0 _summary: Detect if at least one ethernet device is detected diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu index 2e1b1207..69448a5b 100644 --- a/units/info/jobs.pxu +++ b/units/info/jobs.pxu @@ -310,7 +310,7 @@ _description: Lists the device driver and version for all audio devices. plugin: attachment category_id: com.canonical.plainbox::info id: info/network_devices -command: network_device_info.py info +command: network_device_info.py info NETWORK estimated_duration: 0.550 _description: Provides information about network devices -- cgit v1.2.3