saltstack/salt — pull request #8074 by mtorromeo (2013-10-24 15:25:11+00:00)
Title: Do not fail reading/writing persistent modules when _get_modules_conf() ...

...file doesn't exist.

For instance on Arch, /etc/modules-load.d/salt_managed.conf will not exist at first and trying to apply a state such as

microcode:
kmod.present:
- persist: True

will fail with the error:
IOError: [Errno 2] No such file or directory: '/etc/modules-load.d/salt_managed.conf'