[COOK-4122] Assign variable not compare it

This should be an assignment.

https://tickets.opscode.com/browse/COOK-4122