{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/19635","labels_url":"https://api.github.com/repos/saltstack/salt/issues/19635/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/19635/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/19635/events","html_url":"https://github.com/saltstack/salt/issues/19635","id":53999755,"number":19635,"title":"YAML keys with no value cause jinja rendering to fail","user":{"login":"dnd","id":37888,"avatar_url":"https://avatars.githubusercontent.com/u/37888?v=3","gravatar_id":"","url":"https://api.github.com/users/dnd","html_url":"https://github.com/dnd","followers_url":"https://api.github.com/users/dnd/followers","following_url":"https://api.github.com/users/dnd/following{/other_user}","gists_url":"https://api.github.com/users/dnd/gists{/gist_id}","starred_url":"https://api.github.com/users/dnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnd/subscriptions","organizations_url":"https://api.github.com/users/dnd/orgs","repos_url":"https://api.github.com/users/dnd/repos","events_url":"https://api.github.com/users/dnd/events{/privacy}","received_events_url":"https://api.github.com/users/dnd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-11T18:26:03Z","updated_at":"2015-01-11T18:26:03Z","closed_at":null,"body":"I have a pillar that looks something like this:\r\n\r\n```yaml\r\nminion:\r\n  roles:\r\n    - something\r\n  grains:\r\n  db:\r\n    version: 1.2.3\r\n```\r\n\r\nIf I attempt to use `salt['pilar.get']('minion')` in my jinja template it treats the entire block as `None`. I can use `pillar.get` or `pillar.items` from the command line or in a custom module and salt returns the data just fine. It is only once it gets to the jinja template that it magically becomes `None`. If I put a value in for `grains` then the jinja template will properly set the data.\r\n\r\n```\r\n# salt --versions-report\r\n           Salt: 2014.7.0-1079-gdbbab28\r\n         Python: 2.6.5 (r265:79063, Feb 27 2014, 19:44:14)\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.20.1\r\n msgpack-python: 0.1.9.final\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.0.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.09\r\n          ioflo: Not Installed\r\n          PyZMQ: 13.0.0\r\n           RAET: Not Installed\r\n            ZMQ: 3.2.2\r\n           Mako: 1.0.0\r\n```"}}