theforeman/puppet-foreman — pull request #119 by xorpaul (2013-10-15 15:25:21+00:00)
Title: check host facts file size and skip empty ones

When the script encounters an empty host facts yaml file it terminates with

```
Could not send facts to Foreman: undefined method `[]' for false:FalseClass
```

Which could prevent some host facts from ever being send to foreman.