Skip to content

Commit

Permalink
inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Schöchlin committed Sep 22, 2022
1 parent d6e68ff commit a8563a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension-files/tools/zabbix_discovery_devices
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a8563a5

Please sign in to comment.