Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

users add - json missing comma #72

Merged
merged 1 commit into from
Jun 2, 2016
Merged

users add - json missing comma #72

merged 1 commit into from
Jun 2, 2016

Conversation

karolisc
Copy link
Contributor

@karolisc karolisc commented Jun 1, 2016

Hi,

Adding users in manifest:

  users => [
    {
      'username' => 'user1,
      'password' => 'pass1',
      'readonly' => false,
    },
    {
      'username' => 'user2',
      'password' => 'pass2',
      'readonly' => true,
    }
  ],

in logs Uchiwa fails to start with not very intuitive error:

{"timestamp":"2016-06-01T12:23:10.461145438Z","level":"fatal","message":"Error decoding file /etc/sensu/uchiwa.json: invalid character '\"' after object key:value pair"}

configuration /etc/sensu/uchiwa.json misses comma between users and ssl sections.

"users": [
  {
    "username": "user1",
    "password": "pass1",
    "role": {
      "readonly": false
    }
  },
  {
    "username": "user2",
    "password": "pass2",
    "role": {
      "readonly": true
    }
  }
]    "no comma here"
"ssl": {
  "certfile": "/etc/sensu/ssl/uchiwa.pem",
  "keyfile": "/etc/sensu/ssl/uchiwa.key"
}

Karolis

@solarkennedy
Copy link
Contributor

thanks

@solarkennedy solarkennedy merged commit 7da2273 into Yelp:master Jun 2, 2016
@karolisc karolisc deleted the karolisc-patch-1 branch June 2, 2016 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants