mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
pdns page bug fix
This commit is contained in:
@@ -18,7 +18,11 @@ def managePowerDNS(request):
|
||||
data = {}
|
||||
data['status'] = 1
|
||||
|
||||
try:
|
||||
pdnsStatus = PDNSStatus.objects.get(pk=1)
|
||||
except:
|
||||
pdnsStatus = PDNSStatus(type='NATIVE', serverStatus=1)
|
||||
pdnsStatus.save()
|
||||
|
||||
if pdnsStatus.type == 'MASTER':
|
||||
counter = 1
|
||||
|
||||
Reference in New Issue
Block a user