mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +00:00
Remove blank lines and spaces
This commit is contained in:
parent
a21d4d9cbd
commit
ad86f8ea2a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user