File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def checkTLSsettings(args):
50
50
args .get ('tlsKeyPath' ), args .get ('tlsCertFile' ))
51
51
) or (not checkFileExists (
52
52
args .get ('tlsKeyPath' ), args .get ('tlsKeyFile' ))):
53
- return False , MSG ['CertError ' ]
53
+ return False , MSG ['MissingFileFromPathError ' ]
54
54
return True , ''
55
55
56
56
@@ -62,7 +62,7 @@ def checkBasicAuthsettings(args):
62
62
elif args .get ('enabled' ) and ("/" in str (args .get ('password' )) and not
63
63
os .path .isfile (args .get ('password' ))
64
64
):
65
- return False , MSG ['FileNotFound' ].format (args . get ( 'password' ) )
65
+ return False , MSG ['FileNotFound' ].format ("mandatory for basic auth" )
66
66
elif args .get ('enabled' ) and "/" not in str (args .get ('password' )):
67
67
try :
68
68
base64 .b64decode (args .get ('password' ), validate = True )
@@ -87,7 +87,7 @@ def checkAPIsettings(args):
87
87
88
88
def checkCAsettings (args ):
89
89
if args .get ('caCertPath' ) and args ['caCertPath' ] != False and not (os .path .exists (args ['caCertPath' ])):
90
- return False , MSG ['FileNotFound' ].format (args . get ( 'caCertPath' ) )
90
+ return False , MSG ['FileNotFound' ].format ("mandatory for CA validation" )
91
91
return True , ''
92
92
93
93
Original file line number Diff line number Diff line change 31
31
'MissingPortParam' : 'Missing applications port configuration, quitting' ,
32
32
'MissingSSLCert' : 'Missing ssl configuration, quitting' ,
33
33
'KeyPathError' : 'KeyPath directory not found, quitting' ,
34
- 'CertError ' : 'Missing certificates in the specified keyPath directory, quitting' ,
34
+ 'MissingFileFromPathError ' : 'Missing certificates in the specified keyPath directory, quitting' ,
35
35
'CollectorErr' : 'Failed to initialize connection to pmcollector: {}, quitting' ,
36
36
'MetaError' : 'Metadata could not be retrieved. Check log file for more details, quitting' ,
37
37
'MetaSuccess' : 'Successfully retrieved MetaData' ,
Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ def main(argv):
226
226
logger .info ("%s" , MSG ['BridgeVersionInfo' ].format (__version__ ))
227
227
logger .details ('zimonGrafanaItf invoked with parameters:\n %s' ,
228
228
"\n " .join ("{}={}" .format (k , v )
229
- for k , v in args .items () if not
230
- k == 'apiKeyValue' ))
229
+ for k , v in args .items () if
230
+ k not in [ 'apiKeyValue' , 'password' ] ))
231
231
mdHandler = MetadataHandler (logger = logger , server = args .get ('server' ),
232
232
port = args .get ('serverPort' ),
233
233
apiKeyName = args .get ('apiKeyName' ),
You can’t perform that action at this time.
0 commit comments