1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Manager.plan_outputs

This commit is contained in:
Ross McFarland
2017-12-02 10:37:19 -08:00
parent b72fba3e35
commit 31e6f99df6
2 changed files with 5 additions and 2 deletions

View File

@@ -68,6 +68,8 @@ class Manager(object):
def __init__(self, config_file, max_workers=None, include_meta=False):
self.log.info('__init__: config_file=%s', config_file)
self.plan_outputs = [PlanLogger(self.log)]
# Read our config file
with open(config_file, 'r') as fh:
self.config = safe_load(fh, enforce_order=False)
@@ -259,7 +261,8 @@ class Manager(object):
# plan pairs.
plans = [p for f in futures for p in f.result()]
PlanLogger(self.log).output(plans)
for output in self.plan_outputs:
output.run(plans)
if not force:
self.log.debug('sync: checking safety')

View File

@@ -86,7 +86,7 @@ class PlanLogger(object):
self.log = log
self.level = level
def output(self, plans):
def run(self, plans):
hr = '*************************************************************' \
'*******************\n'
buf = StringIO()