[chef] knife role edit lexical error


Chronological Thread 
  • From: Sean Staats < >
  • To:
  • Subject: [chef] knife role edit lexical error
  • Date: Thu, 13 Mar 2014 16:13:30 -0500

I'm trying to add a recipe to the run_list of a role and don't know what I'm doing wrong...

$ knife role edit apache2-servers
ERROR: Yajl::ParseError: lexical error: invalid char in json text.
          ype": "role",   "run_list": ['recipe[apache2]'    ],   "env_
                       (right here) ------^

Note that the "right here" carat is pointing to the 'r' in recipe.
Here is the entire role JSON file when beginning to edit it:

{
  "name": "apache2-servers",
  "description": "Apache2 servers role",
  "json_class": "Chef::Role",
  "default_attributes": {
  },
  "override_attributes": {
  },
  "chef_type": "role",
  "run_list": [

  ],
  "env_run_lists": {
  }
}

Thanks in advance for any help and guidance.

Sean




This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.



Archive powered by MHonArc 2.6.16.

§