Skip to content

Commit b516abe

Browse files
author
rincewind
committed
Turn logic around
1 parent b194a30 commit b516abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_vmware_nsxt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,15 @@ def main():
407407
fix_tls_cert_store()
408408

409409
args = parse_args()
410-
if args.insecure == False:
410+
if args.insecure:
411411
import urllib3
412412
urllib3.disable_warnings()
413413

414414
if args.version:
415415
print("check_vmware_nsxt version %s" % VERSION)
416416
return 0
417417

418-
client = Client(args.api, args.username, args.password, verify=args.insecure)
418+
client = Client(args.api, args.username, args.password, verify=(not args.insecure))
419419

420420
if args.mode == 'cluster-status':
421421
return client.get_cluster_status().print_and_return()

0 commit comments

Comments
 (0)