Skip to content

Commit 3428c8b

Browse files
committed
fix flake8 findings
Signed-off-by: hwassman <[email protected]>
1 parent 7d88f6a commit 3428c8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/confParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ class Password(argparse.Action):
205205
def __call__(self, parser, namespace, values, option_string):
206206
if values is None:
207207
if self.dest == 'password':
208-
print(f'Enter your basic auth password')
208+
print('Enter your basic auth password')
209209
else:
210-
print(f'Enter your apiKey value')
210+
print('Enter your apiKey value')
211211
values = getpass.getpass()
212212

213213
setattr(namespace, self.dest, values)

source/zimonGrafanaIntf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def updateCherrypyConf(args):
115115

116116

117117
def check_basic_auth(realm, username, password):
118-
if (username and password and
119-
username in AUTH_DICT and
120-
AUTH_DICT[username] == password):
118+
if (username and password
119+
and username in AUTH_DICT
120+
and AUTH_DICT[username] == password):
121121
return True
122122
logger = getBridgeLogger()
123123
logger.details(MSG['AuthValidationError'])

0 commit comments

Comments
 (0)