(self, data, join=False)
| 1772 | return myvars |
| 1773 | |
| 1774 | def jinjaify(self, data, join=False): |
| 1775 | if not data: |
| 1776 | return None |
| 1777 | v = self.get_vars() |
| 1778 | if self.todo_id: |
| 1779 | v.update(state.get_todo_by_id(self.todo_id).get_vars_and_state()) |
| 1780 | if isinstance(data, list): |
| 1781 | if join: |
| 1782 | return expand_jinja(" ".join(data), v) |
| 1783 | else: |
| 1784 | res = [] |
| 1785 | for rf in data: |
| 1786 | res.append(expand_jinja(rf, v)) |
| 1787 | return res |
| 1788 | else: |
| 1789 | return expand_jinja(data, v) |
| 1790 | |
| 1791 | |
| 1792 | def abbreviate_homedir(line): |
no test coverage detected