mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-27 15:54:16 +00:00
Change domain(s) to zone(s) in the python code and docs
This commit is contained in:
@@ -45,11 +45,11 @@ class DomainTemplate(db.Model):
|
||||
return {'status': 'ok', 'msg': 'Template has been created'}
|
||||
except Exception as e:
|
||||
current_app.logger.error(
|
||||
'Can not update domain template table. Error: {0}'.format(e))
|
||||
'Can not update zone template table. Error: {0}'.format(e))
|
||||
db.session.rollback()
|
||||
return {
|
||||
'status': 'error',
|
||||
'msg': 'Can not update domain template table'
|
||||
'msg': 'Can not update zone template table'
|
||||
}
|
||||
|
||||
def delete_template(self):
|
||||
@@ -60,6 +60,6 @@ class DomainTemplate(db.Model):
|
||||
return {'status': 'ok', 'msg': 'Template has been deleted'}
|
||||
except Exception as e:
|
||||
current_app.logger.error(
|
||||
'Can not delete domain template. Error: {0}'.format(e))
|
||||
'Can not delete zone template. Error: {0}'.format(e))
|
||||
db.session.rollback()
|
||||
return {'status': 'error', 'msg': 'Can not delete domain template'}
|
||||
return {'status': 'error', 'msg': 'Can not delete zone template'}
|
||||
|
Reference in New Issue
Block a user