Christopher H. Laco 5e975b5a10 [COOK-3617] Fix no method chomp on NilClass attribute errors
The hostname/myhost/mydomain attributes try to chomp on a `nil` value, mainly the node["domain"] attribute. Additionally, || is used after a chomp, so empty string values will probably never hit the second half of the statement.

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
2013-09-30 18:59:58 -04:00
..