Skip to content

Commit

Permalink
possible resolution of #1124
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 24, 2023
1 parent 7972d16 commit d87a8d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions install/test.py
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
import secrets
import string

alphabet = string.ascii_letters + string.digits
the_password = ''.join(secrets.choice(alphabet) for _ in range(14))
print(the_password)
3 changes: 3 additions & 0 deletions plogical/dnsUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ def createDNSRecordCloudFlare(cf, zone, name, type, value, priority, ttl):
def createDNSRecord(zone, name, type, value, priority, ttl):
try:

if Records.objects.filter(name=name, type=type).count() > 0:
return

if zone.type == 'MASTER':
getSOA = Records.objects.get(domainOwner=zone, type='SOA')
soaContent = getSOA.content.split(' ')
Expand Down

0 comments on commit d87a8d8

Please sign in to comment.