saltstack/salt — pull request #487 by bastichelaar (2012-01-11 13:02:50+00:00)
Title: Updated data module to open files, added data.get_value function

The data module did not open the datastore file. I kept the logic in the data.py module. Furthermore, I added a get_value function, that allows you to get values from the datastore to include in the template.

Example:

```
# salt '*' data.dump "{'eggs': 'spam'}"
{'hostname': True}
# salt '*' data.get_value eggs
{'hostname': 'spam'}
```

```
{{ salt['data.get_value']('eggs') }}
```