saltstack/salt — Issue #527: cmd.retcode results unpredictable when shell command produces output
Author: archtaku
Created: 2012-01-17 04:28:53+00:00
State: open

# salt '*' cmd.retcode "ls /var/log"
{'hostname': 2}
# salt '*' cmd.retcode "ls /var/log >/dev/null"
{'hostname': 0}

OS: CentOS 5.7
Installed via: git clone made on 16 January 2012 (after the officail 0.9.5 release)

Also reproduced with Salt 0.9.4 on Arch Linux.