saltstack/salt — Issue #870: State 'cmd.run' and -unless param always executes the command
Author: Zogg
Created: 2012-03-09 14:54:47+00:00
State: open

The following state executes Always, despite -unless statement:

```
tz-update:
cmd:
- run
- name: echo "Etc/UTC" > /etc/timezone
- unless: "[ 'Etc/UTC' == `cat /etc/timezone` ]"
```

However, the inverse statement Does work:

```
tz-update:
cmd:
- run
- name: echo "Etc/UTC" > /etc/timezone
- onlyif: "[ 'Etc/UTC' != `cat /etc/timezone` ]"
```