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:
@@ -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')
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user