mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-20 15:55:26 +08:00
don't calculate a zonefile hash unless we need to
This commit is contained in:
@@ -204,9 +204,9 @@ def add_atlas_zonefile_data( zonefile_text, zonefile_dir ):
|
||||
Return False on error
|
||||
"""
|
||||
|
||||
zonefile_hash = get_zonefile_data_hash( zonefile_text )
|
||||
rc = store_atlas_zonefile_data( zonefile_text, zonefile_dir )
|
||||
if not rc:
|
||||
zonefile_hash = get_zonefile_data_hash( zonefile_text )
|
||||
log.error("Failed to save zonefile {}".format(zonefile_hash))
|
||||
rc = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user