mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-30 15:05:39 +00:00
LGTM fixes
This commit is contained in:
parent
f5b88ebc73
commit
3e961d7b21
@ -57,7 +57,7 @@ class Record(object):
|
|||||||
current_app.logger.error(
|
current_app.logger.error(
|
||||||
"Cannot fetch domain's record data from remote powerdns api. DETAIL: {0}"
|
"Cannot fetch domain's record data from remote powerdns api. DETAIL: {0}"
|
||||||
.format(e))
|
.format(e))
|
||||||
return False
|
return []
|
||||||
|
|
||||||
return jdata['rrsets']
|
return jdata['rrsets']
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import re
|
|
||||||
import json
|
import json
|
||||||
import traceback
|
import traceback
|
||||||
from ast import literal_eval
|
from ast import literal_eval
|
||||||
|
@ -326,7 +326,6 @@ def signin_history(username, authenticator, success):
|
|||||||
request_ip = request.remote_addr
|
request_ip = request.remote_addr
|
||||||
|
|
||||||
# Write log
|
# Write log
|
||||||
str_success = 'succeeded' if success else 'failed'
|
|
||||||
if success:
|
if success:
|
||||||
str_success = 'succeeded'
|
str_success = 'succeeded'
|
||||||
current_app.logger.info(
|
current_app.logger.info(
|
||||||
|
Loading…
Reference in New Issue
Block a user