From 3003f8ea1dcbe45c177ebff0dd5465b1b86aa04c Mon Sep 17 00:00:00 2001 From: anandaravuri Date: Fri, 9 Feb 2024 13:13:40 -0800 Subject: [PATCH] opae.io: Fix error system exit exception value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python os exception EX_NOTFOUND doesn’t supported, change to exception code to 1 Signed-off-by: anandaravuri --- binaries/opae.io/opae/io/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/opae.io/opae/io/utils.py b/binaries/opae.io/opae/io/utils.py index 23ee7c24202c..25e4de6bb2ae 100644 --- a/binaries/opae.io/opae/io/utils.py +++ b/binaries/opae.io/opae/io/utils.py @@ -147,7 +147,7 @@ def vfio_init(pci_addr, new_owner='', force=False, **kwargs): if not iommu_enabled(): LOG.error("Binding to vfio-pci will fail because IOMMU is disabled.") - raise SystemExit(os.EX_NOTFOUND) + raise SystemExit(1) if driver and driver != 'vfio-pci': dev_dict = get_dev_dict(JSON_FILE)