apigee / henchman

Orchestration and Automation tool
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Shell module is not accepting " or ' in the command. #123

Closed baskaran-md closed 8 years ago

baskaran-md commented 8 years ago
  - name: "Get Version of {{ item }}"
    shell: cmd="my-service {{ item }} version | cut -d ' ' -f2"
    debug: true
    with_items:
    - "cassandra"
    - "zookeeper"

ERROR

SHELL [ cmd => my-service cassandra version | cut -d   -f2 ]
failure => exec'ed command

Output
-----
stderr: cut: the delimiter must be a single character
Try 'cut --help' for more information.
echo: write error: Broken pipe

stdout:
jlin21 commented 8 years ago

@sudharsh can you get this one?

sudharsh commented 8 years ago

This one is fixed with 3940eef44dafa8de7ea09d51ccaedc09cf3e7d78