Skip to content

Commit 78a7bcf

Browse files
committed
[module_base] Add _run_post()
1 parent de4301a commit 78a7bcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/module_utils/module_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ def _update(self):
446446
else:
447447
return ('', '', '')
448448

449+
def _run_post(self):
450+
""" used to do some post-processing like adding results or decoding diff entries """
451+
pass
452+
449453
# We take params here for use with pfsense_aggregate and the test framework
450454
def run(self, params):
451455
""" process input params to add/update/delete """
@@ -464,6 +468,8 @@ def run(self, params):
464468
else:
465469
self._add()
466470

471+
self._run_post()
472+
467473
##############################
468474
# Logging
469475
#

0 commit comments

Comments
 (0)