HomePhorge

(PUP-1547) Undefined method for nil:NilClass when no providers found
8054a06fe58bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-1547) Undefined method for nil:NilClass when no providers found

When a puppet type has a list property and no providers are found for that type,
provider is nil and causes an "Undefined method 'property' for nil:NilClass" error.
ie. Undefined method 'groups' for nil:NilClass for the user type

Check if provider is nil before trying to access the property

Details

Provenance
Carlos Sanchez <csanchez@maestrodev.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU5089ff5be586: Merge remote-tracking branch 'sathieu/patch-2'
Branches
Unknown
Tags
Unknown

Event Timeline

Carlos Sanchez <csanchez@maestrodev.com> committed rPU8054a06fe58b: (PUP-1547) Undefined method for nil:NilClass when no providers found (authored by Carlos Sanchez <csanchez@maestrodev.com>).Mar 26 2014, 9:03 AM