|
Additional information from an EC2 instance: From chef run: ubuntu@ip-10-243-31-223:~$ ohai | grep domain chef/attributes/chef.rb: ubuntu@ip-10-243-31-223:~$ gem list
abstract (1.0.0) Until this bug is fixed, the resolution here for now is to downgrade JSON gems to 1.1.9: % sudo gem install json json_pure -v 1.1.9 --no-ri --no-rdoc % sudo gem uninstall json json_pure -v 1.2.0 % sudo gem cleanup % ohai hostname I had this also pop up on a chef server: When an attribute value is a string instead of an array or [hm]ash, the generator error occurs, as it is looking for this regular expression: /\A\s*(?:[.]|{.})\s*\Z/m - a string value won't match, so for example the following from irb: % irb Thanks for the fix, Joshua. Applied to opscode/master. |
||||||||||||||||||||||||||||||||||
ohai w/o an attribute specified runs as normal.