From fa6e7a7430b3f4e4b534ac6d8f7d07b3319e0e39 Mon Sep 17 00:00:00 2001 From: Michael Auchter Date: Thu, 22 Oct 2020 10:34:56 -0500 Subject: mpm: filesystem_status: tolerate absence of mender If the mender utility is not installed or exits with a failure, return NULL for the artifact rather than raising an exception (and disrupting device initialization). --- mpm/python/usrp_mpm/periph_manager/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mpm/python/usrp_mpm/periph_manager') diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 324e47dc9..a6bffafed 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -168,7 +168,9 @@ class PeriphManagerBase(object): version_string = "" mboard_info["mpm_sw_version"] = version_string - mboard_info["fs_version"] = get_fs_version() + fs_version = get_fs_version() + if fs_version is not None: + mboard_info["fs_version"] = fs_version # Mender artifacts are generally not present on a machine hosting # a simulated device--let it slide if not found on sim devices try: -- cgit v1.2.3