mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-30 09:13:45 +00:00
Fix python code as suggestion from LGTM
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
import logging
|
||||
|
||||
class logger(object):
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import re
|
||||
import sys
|
||||
import json
|
||||
import requests
|
||||
import hashlib
|
||||
@@ -10,12 +9,10 @@ from urllib.parse import urlparse
|
||||
from datetime import datetime, timedelta
|
||||
from threading import Thread
|
||||
|
||||
from .certutil import *
|
||||
from .certutil import KEY_FILE, CERT_FILE
|
||||
|
||||
if app.config['SAML_ENABLED']:
|
||||
from onelogin.saml2.auth import OneLogin_Saml2_Auth
|
||||
from onelogin.saml2.utils import OneLogin_Saml2_Utils
|
||||
from onelogin.saml2.settings import OneLogin_Saml2_Settings
|
||||
from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser
|
||||
idp_timestamp = datetime(1970, 1, 1)
|
||||
idp_data = None
|
||||
@@ -227,7 +224,7 @@ def prepare_flask_request(request):
|
||||
|
||||
def init_saml_auth(req):
|
||||
own_url = ''
|
||||
if req['https'] is 'on':
|
||||
if req['https'] == 'on':
|
||||
own_url = 'https://'
|
||||
else:
|
||||
own_url = 'http://'
|
||||
|
Reference in New Issue
Block a user