Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. {%- set addrs = [addr + ':4161' for addr in ['1', '2', '3']] %}
  2.  
  3. debug:
  4. test.show_notification:
  5. - name: Debug Information
  6. - text: |
  7. {{ addrs }}
  8.  
  9. Output:
  10. ---
  11.  
  12. root@4994eb15e8e5:/srv/salt# salt '*' state.apply debug
  13. salt-minion:
  14. Data failed to compile:
  15. ----------
  16. Rendering SLS 'base:debug' failed: Jinja syntax error: expected token ',', got 'for'; line 1
  17.  
  18. ---
  19. {%- set addrs = [addr + ':4161' for addr in ['1', '2', '3']] %} <======================
  20.  
  21. debug:
  22. test.show_notification:
  23. - name: Debug Information
  24. - text: |
  25. [...]
  26. ---
  27. ERROR: Minions returned with non-zero exit code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement