Remove blank lines and spaces

This commit is contained in:
Khanh Ngo 2019-09-25 11:45:03 +07:00
parent a21d4d9cbd
commit ad86f8ea2a
No known key found for this signature in database
GPG Key ID: D5FAA6A16150E49E

View File

@ -934,7 +934,6 @@ class Domain(db.Model):
# add new domain # add new domain
self.add_domain_to_powerdns_admin(domain=data) self.add_domain_to_powerdns_admin(domain=data)
logging.info('Update finished') logging.info('Update finished')
return {'status': 'ok', 'msg': 'Domain table has been updated successfully'} return {'status': 'ok', 'msg': 'Domain table has been updated successfully'}
except Exception as e: except Exception as e:
@ -966,7 +965,6 @@ class Domain(db.Model):
logging.info("Rolledback Domain {0} {1}".format(domain.name, e)) logging.info("Rolledback Domain {0} {1}".format(domain.name, e))
raise raise
def add(self, domain_name, domain_type, soa_edit_api, domain_ns=[], domain_master_ips=[], account_name=None): def add(self, domain_name, domain_type, soa_edit_api, domain_ns=[], domain_master_ips=[], account_name=None):
""" """
Add a domain to power dns Add a domain to power dns
@ -1009,7 +1007,6 @@ class Domain(db.Model):
logging.debug(traceback.format_exc()) logging.debug(traceback.format_exc())
return {'status': 'error', 'msg': 'Cannot add this domain.'} return {'status': 'error', 'msg': 'Cannot add this domain.'}
def add_domain_to_powerdns_admin(self, domain=None, domain_dict=None): def add_domain_to_powerdns_admin(self, domain=None, domain_dict=None):
""" """
Read Domain from PowerDNS and add into PDNS-Admin Read Domain from PowerDNS and add into PDNS-Admin
@ -1051,7 +1048,6 @@ class Domain(db.Model):
logging.info("Rolledback Domain {0}".format(d.name)) logging.info("Rolledback Domain {0}".format(d.name))
raise raise
def update_soa_setting(self, domain_name, soa_edit_api): def update_soa_setting(self, domain_name, soa_edit_api):
domain = Domain.query.filter(Domain.name == domain_name).first() domain = Domain.query.filter(Domain.name == domain_name).first()
if not domain: if not domain:
@ -1460,7 +1456,6 @@ class Record(object):
This is not a model, it's just an object This is not a model, it's just an object
which be assigned data from PowerDNS API which be assigned data from PowerDNS API
""" """
def __init__(self, name=None, type=None, status=None, ttl=None, data=None): def __init__(self, name=None, type=None, status=None, ttl=None, data=None):
self.name = name self.name = name
self.type = type self.type = type