Skip to content

Commit

Permalink
makes parser directive extend templatable (ansible-network#132)
Browse files Browse the repository at this point in the history
This change will now attempt to template the extend keyword when it is
found in parser templates.  If the keyword is static, it is just
returned unchanged.
  • Loading branch information
privateip authored and trishnaguha committed Aug 13, 2018
1 parent 403468a commit 948c6cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action_plugins/command_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def run(self, tmp=None, task_vars=None):

register = task.pop('register', None)
extend = task.pop('extend', None)
if extend:
extend = self.template(extend, self.ds)

export = task.pop('export', False)
export_as = task.pop('export_as', 'list')
Expand Down

0 comments on commit 948c6cb

Please sign in to comment.