it looks like some [] method in the chain returned nil. One or more of your hosts don’t have either mountpoints (facter 2.x perhaps) or don’t have “capacity”. Whatever.
You can use nice Ruby trick: host.facts.dig("mountpoints").dig("/").dig("capacity") however the dig method might not be in the list of safemode methods
Yeah I have just checked safemode, you need to turn it off in Administer - Settings or hotfix your instance:
This isn’t the correct way of using dig since you may end up calling nil.dig. If dig was allowed, the correct way is host.facts.dig('mountpoints', '/', 'capacity').
I confirmed safemode was off in Settings(Safemode rendering = No) and the hotfix applied, but host.facts.dig('mountpoints', '/', 'capacity') in my template didn’t work. My output report just shows blanks.
I can confirm the values exist. When I hit this URL: https://<server>/fact_values?search=name+%3D+mountpoints%3A%3A%2F%3A%3Acapacity, it shows the percentage values.