saltstack/salt — pull request #2272 by thekuffs (2012-10-17 23:45:22+00:00)
Title: Fix the diff orientation for check_file_meta

The diff orientation when applying `file.managed` in testing mode was reversed.

```
State: - file
Name: /etc/sysconfig/clock
Function: managed
Result: None
Comment: The following values are set to be changed:
diff: ---
+++
@@ -1,2 +1,2 @@
-ZONE="America/Chicago"
+ZONE="UTC"
UTC=false
```

When I double-checked the content I found that `ZONE="UTC"` was already present and that the managed state was to change it to 'America/Chicago'.

I tested the proposed patch and it works as intended.