mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
return raw zonefile
This commit is contained in:
@@ -3734,6 +3734,12 @@ def cli_get_name_zonefile(args, config_path=CONFIG_PATH, raw=True, proxy=None):
|
||||
except:
|
||||
result['warning'] = 'Non-standard zonefile'
|
||||
|
||||
else:
|
||||
result = {
|
||||
'status': True,
|
||||
'zonefile': result['raw_zonefile']
|
||||
}
|
||||
|
||||
if raw:
|
||||
return result['zonefile']
|
||||
|
||||
|
||||
@@ -1038,7 +1038,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
|
||||
Reply 500 on failure to fetch data
|
||||
"""
|
||||
internal = self.server.get_internal_proxy()
|
||||
resp = internal.cli_get_name_zonefile(name, "true", raw=False)
|
||||
resp = internal.cli_get_name_zonefile(name, "false", raw=False)
|
||||
if json_is_error(resp):
|
||||
self._reply_json({"error": resp['error']}, status_code=500)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user