Skip to content

Commit

Permalink
Merge pull request #69 from BiznetGIO/0.6-devel
Browse files Browse the repository at this point in the history
0.6.11
  • Loading branch information
anak10thn authored Aug 13, 2019
2 parents 7f7d91c + abd92c3 commit 6cb02cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/app/controllers/api/admin/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
url_fix= url_env+":"+port
url = url_fix+"/api/command_rest"

date = datetime.datetime.now().strftime("%Y%m%d")

def sync_conf_insert(id_zone):
tags = {
"id_zone" : id_zone
Expand Down Expand Up @@ -82,7 +80,7 @@ def sync_cname_default(id_record, record):
def addSOADefault(zone):
zone_data = db.get_by_id("zn_zone","nm_zone", zone)
type_data = db.get_by_id("zn_type","nm_type","SOA")

date = datetime.datetime.now().strftime("%Y%m%d")
record_soa = {
"nm_record": '@',
"date_record": str(date),
Expand Down Expand Up @@ -134,7 +132,7 @@ def addSOADefault(zone):
def addNSDefault(zone):
zone_data = db.get_by_id("zn_zone","nm_zone", zone)
type_data = db.get_by_id("zn_type","nm_type","NS")

date = datetime.datetime.now().strftime("%Y%m%d")
record_ns = {
"nm_record": "@",
"date_record": str(date),
Expand Down Expand Up @@ -178,6 +176,7 @@ def addNSDefault(zone):

def addCNAMEDefault(id_zone, nm_zone):
id_record = None
date = datetime.datetime.now().strftime("%Y%m%d")
data_record = {
"nm_record": "www",
"date_record":str(date),
Expand Down

0 comments on commit 6cb02cf

Please sign in to comment.