Skip to content

Commit abdef35

Browse files
authored
skip keyPath verification if the default (non https) port is used
1 parent e822c48 commit abdef35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/zimonGrafanaIntf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,10 @@ def main(argv):
685685
if args.port == 8443 and not args.keyPath:
686686
print(MSG['MissingParm'])
687687
return
688-
elif not os.path.exists(args.keyPath):
688+
elif args.port == 8443 and not os.path.exists(args.keyPath):
689689
print(MSG['KeyPathError'])
690690
return
691-
else:
691+
elif args.port == 8443:
692692
certFile = findCertFile(args.keyPath)
693693
keyFile = findKeyFile(args.keyPath)
694694
if (not certFile) or (not keyFile):

0 commit comments

Comments
 (0)