Skip to content

Commit

Permalink
Markdown template: Don't rely on hostvars being present
Browse files Browse the repository at this point in the history
  • Loading branch information
fboender committed Feb 12, 2018
1 parent 1a65135 commit ee6fccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblecmdb/data/tpl/markdown.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ${"###"} Groups
% endfor

${"###"} Custom variables
% for var_name, var_value in host['hostvars'].items():
% for var_name, var_value in host.get('hostvars', {}).items():
* **${var_name}**: ${var_value}
% endfor

Expand Down

0 comments on commit ee6fccc

Please sign in to comment.