kitchen-salt icon indicating copy to clipboard operation
kitchen-salt copied to clipboard

Crashes if pillar_from_directories is the only pillar configuration

Open ipmb opened this issue 7 years ago • 1 comments

My provisioner looks like this:

provisioner:
  name: salt_solo
  salt_version: 2016.11
  is_file_root: true
  local_salt_root: .
  state_top_from_file: true
  pillars_from_directories:
    - pillar

When doing the converge, this code block is executed: https://github.com/saltstack/kitchen-salt/blob/673b07ea8346aabec4139eb9cfc21b088a547c44/lib/kitchen-salt/pillars.rb#L32-L39

In my case, it failed because my local_salt_root did not have a pillar directory.

If I add:

  pillars:
    fake.sls: []

It works as expected. I would expect everything to work if I only define pillars_from_directories in my provisioner.

ipmb avatar Feb 06 '18 04:02 ipmb

Thanks for reporting, I will get this fixed.

gtmanfred avatar Feb 06 '18 14:02 gtmanfred