return raw zone file if we know it's RFC-compliant

This commit is contained in:
Jude Nelson
2017-07-31 17:08:04 -04:00
parent 20d57c081e
commit 43a3fe2f31

View File

@@ -3620,7 +3620,7 @@ def cli_get_name_zonefile(args, config_path=CONFIG_PATH, raw=True, proxy=None):
try:
new_zonefile = decode_name_zonefile(name, result['zonefile'])
assert new_zonefile is not None, "Failed to decode zone file"
result['zonefile'] = new_zonefile
result['zonefile'] = result['zonefile']
except Exception as e:
if BLOCKSTACK_DEBUG:
log.exception(e)