@@ -42,7 +42,7 @@ def checkTLSsettings(args):
4242 args .get ('tlsKeyFile' ) or not
4343 args .get ('tlsCertFile' )
4444 ):
45- return False , MSG ['MissingParm ' ]
45+ return False , MSG ['MissingSSLCert ' ]
4646 elif args .get ('protocol' ) == "https" and not os .path .exists (args .get ('tlsKeyPath' )):
4747 return False , MSG ['KeyPathError' ]
4848 elif args .get ('protocol' ) == "https" :
@@ -58,16 +58,16 @@ def checkBasicAuthsettings(args):
5858 if args .get ('enabled' ) and (not args .get ('username' ) or not
5959 args .get ('password' )
6060 ):
61- return False , MSG ['MissingParm ' ]
61+ return False , MSG ['MissingBasicAuthSettings ' ]
6262 elif args .get ('enabled' ) and ("/" in str (args .get ('password' )) and not
6363 os .path .isfile (args .get ('password' ))
6464 ):
65- return False , MSG ['PathNotFound' ].format ("basic auth settings" )
65+ return False , MSG ['PathNotFound' ].format ("basic authentication settings" )
6666 elif args .get ('enabled' ) and "/" not in str (args .get ('password' )):
6767 try :
6868 base64 .b64decode (args .get ('password' ), validate = True )
6969 except binascii .Error :
70- return False , MSG ['WrongFormat' ].format ("basic auth password " )
70+ return False , MSG ['WrongFormat' ].format ("basic authentication settings " )
7171 return True , ''
7272
7373
@@ -79,9 +79,9 @@ def checkApplicationPort(args):
7979
8080def checkAPIsettings (args ):
8181 if not args .get ('apiKeyName' ) or not args .get ('apiKeyValue' ):
82- return False , MSG ['MissingParm ' ]
82+ return False , MSG ['MissingApiKeySettings ' ]
8383 elif "/" in str (args .get ('apiKeyValue' )) and not os .path .isfile (args .get ('apiKeyValue' )):
84- return False , MSG ['PathNotFound' ].format ("api key settings" )
84+ return False , MSG ['PathNotFound' ].format ("ApiKey settings" )
8585 return True , ''
8686
8787
0 commit comments