|
After fighting with this and needing to use futon to update the attributes I would suggest that this needs to be increased in severity since every time you save the node a level of escaped characters gets stripped from the JSON. Bumping the severity to Major, setting for 0.8.0 This fix was forked from 7.14, I would be interested in seeing if a patch might be in order for 0.7.14 or another release. http://github.com/pcross616/chef/tree/CHEF-659 I will also create a 0.8.0 branch with this new code... just not tonight. OK.. http://github.com/pcross616/chef/tree/CHEF-659 I will integrate to 0.8 now and push to a new branch on git hub. OK, 0.8 version of the new json editor is now up on github. I was using our dev-chef box and checked in as btm, but its all in there. http://github.com/pcross616/chef/tree/CHEF-659-ALPHA Let me know if you see any issues. Fixed in both code bases 0.7.14 and 0.8.0, recommend for 0.7.16 see git repo's for history and cherry-pick commits. This is in the Chef 0.8.0 Branch now, Pete. Thanks! I found a couple of issues, but in general it's so much nicer that it's merged. Thanks for the effort - it rocks. not fixed 0.7.14, editing issue. Setting fix version to 0.7.16 (unreleased) and 0.8.0 (unreleased) |
||||||||||||||||||||||||||||||||||
Also just having an attribute like:
"users" : [
"ABC
user1",
"ABC
user2"
]
after saving, and then going back to the editor, the array now looks like:
"users" : [
"ABCuser1",
"ABCuser2"
]
side note: when using the editor you need to double escape but via a attributes.rb file single escape works. Making me believe its a pure UI issue.