Skip to content

Hammer – NilClass error

When deploying hosts with hammer you might run into an error like:  “undefined method `provided_attributes’ for nil:NilClass


The reason for this error might not be apparrent, however the meaning behind the error is that the system is unable to come up with a resource for the id you specified.

The best way to troubleshoot this is to check all id’s with the hammer cli and make changes where needed.

In my specific case I parsed:

–location-id 0

However the actual id was 2 which I found via:

hammer location list