From a8563a5cc5f5a00df804511b94d6eac039460a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=B6chlin?= Date: Thu, 22 Sep 2022 15:09:14 +0200 Subject: [PATCH] inverse --- extension-files/tools/zabbix_discovery_devices | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension-files/tools/zabbix_discovery_devices b/extension-files/tools/zabbix_discovery_devices index 8121599..8377233 100755 --- a/extension-files/tools/zabbix_discovery_devices +++ b/extension-files/tools/zabbix_discovery_devices @@ -142,7 +142,7 @@ parser.add_argument( ) parser.add_argument( - '--check_devdev', + '--check_not_devdev', help='Check fpr a device at /dev', action='store_true', ) @@ -194,7 +194,7 @@ for filename in glob.glob('/sys/block/*'): device_model_file = "/sys/block/%s/device/model" % device_name device_model = "UNDEFINED" - if args.check_devdev and not os.path.exists("/dev/%s" % device_name): + if not args.check_not_devdev and not os.path.exists("/dev/%s" % device_name): continue if os.path.isfile(device_model_file):