apigee / henchman

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

Shell module should print the env variable for debugging. #124

Closed baskaran-md closed 8 years ago

baskaran-md commented 8 years ago

Shell Task:

  - name: "Install Bootstrap Service"
    shell: cmd="sh /tmp/bootstrap.sh" env="foo1={{ vars.bar1 }} foo2={{ vars.bar2 }}"
    debug: true

Console Logs:

TASK [ 10.10.10.10 | Install Bootstrap Service | shell ] ~~~~~~~~~~~~~~~~~~~~~
SHELL [ cmd => sh /tmp/bootstrap.sh ]

Expected:

TASK [ 10.10.10.10 | Install Bootstrap Service | shell ] ~~~~~~~~~~~~~~~~~~~~~
SHELL [ cmd => sh /tmp/bootstrap.sh  env => foo1=baz1 foo2=baz2 ]
baskaran-md commented 8 years ago

Pull Request: https://github.com/apigee/henchman/pull/125

jlin21 commented 8 years ago

thanks for the update @baskaran-md