I have a recipe which was running fine under Chef 11 (yes, sorry, I know this is old...):
--snip-- allroles = search(:role, "name:*", "X_CHEF_id_CHEF_X asc") allroles.each do |key| rolename = key rolename = rolename.sub(/role.(.*)./, '\1') --snap--
Now after we had to move from v11 to v12, this breaks:
ERROR: undefined method `sub' for #Chef::Role:0x00000014f6d538
It seems the search delivered role objects as expected....can someone direct me in the right direction on why this does not work anymore?
thanks in advance!