{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/spilo/issues/46","repository_url":"https://api.github.com/repos/zalando/spilo","labels_url":"https://api.github.com/repos/zalando/spilo/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/zalando/spilo/issues/46/comments","events_url":"https://api.github.com/repos/zalando/spilo/issues/46/events","html_url":"https://github.com/zalando/spilo/issues/46","id":138947983,"number":46,"title":"Unable to use exhibitor","user":{"login":"feikesteenbergen","id":8860819,"avatar_url":"https://avatars.githubusercontent.com/u/8860819?v=3","gravatar_id":"","url":"https://api.github.com/users/feikesteenbergen","html_url":"https://github.com/feikesteenbergen","followers_url":"https://api.github.com/users/feikesteenbergen/followers","following_url":"https://api.github.com/users/feikesteenbergen/following{/other_user}","gists_url":"https://api.github.com/users/feikesteenbergen/gists{/gist_id}","starred_url":"https://api.github.com/users/feikesteenbergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feikesteenbergen/subscriptions","organizations_url":"https://api.github.com/users/feikesteenbergen/orgs","repos_url":"https://api.github.com/users/feikesteenbergen/repos","events_url":"https://api.github.com/users/feikesteenbergen/events{/privacy}","received_events_url":"https://api.github.com/users/feikesteenbergen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-07T10:44:42Z","updated_at":"2016-03-07T10:46:31Z","closed_at":null,"body":"When specifying exhibitor as a host, patroni dies:\r\n\r\n```\r\npostgres@786112c34b6e:~$ patroni postgres.yml\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/patroni\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/__init__.py\", line 71, in main\r\n    patroni = Patroni(config)\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/__init__.py\", line 23, in __init__\r\n    self.dcs = self.get_dcs(self.postgresql.name, config)\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/__init__.py\", line 37, in get_dcs\r\n    return ZooKeeper(name, config['zookeeper'])\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/zookeeper.py\", line 83, in __init__\r\n    self.exhibitor = ExhibitorEnsembleProvider(exhibitor['hosts'], exhibitor['port'], poll_interval=interval)\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/zookeeper.py\", line 32, in __init__\r\n    while not self.poll():\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/zookeeper.py\", line 40, in poll\r\n    json = self._query_exhibitors(self._exhibitors)\r\n  File \"/usr/local/lib/python2.7/dist-packages/patroni/zookeeper.py\", line 55, in _query_exhibitors\r\n    random.shuffle(exhibitors)\r\n  File \"/usr/lib/python2.7/random.py\", line 289, in shuffle\r\n    x[i], x[j] = x[j], x[i]\r\nTypeError: 'str' object does not support item assignment\r\n```\r\n\r\nI assume that this is because exhibitor_hosts should be a list."},"comment":{"url":"https://api.github.com/repos/zalando/spilo/issues/comments/193200751","html_url":"https://github.com/zalando/spilo/issues/46#issuecomment-193200751","issue_url":"https://api.github.com/repos/zalando/spilo/issues/46","id":193200751,"user":{"login":"a1exsh","id":489601,"avatar_url":"https://avatars.githubusercontent.com/u/489601?v=3","gravatar_id":"","url":"https://api.github.com/users/a1exsh","html_url":"https://github.com/a1exsh","followers_url":"https://api.github.com/users/a1exsh/followers","following_url":"https://api.github.com/users/a1exsh/following{/other_user}","gists_url":"https://api.github.com/users/a1exsh/gists{/gist_id}","starred_url":"https://api.github.com/users/a1exsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1exsh/subscriptions","organizations_url":"https://api.github.com/users/a1exsh/orgs","repos_url":"https://api.github.com/users/a1exsh/repos","events_url":"https://api.github.com/users/a1exsh/events{/privacy}","received_events_url":"https://api.github.com/users/a1exsh/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T10:46:31Z","updated_at":"2016-03-07T10:46:31Z","body":"See https://github.com/zalando/patroni/pull/143"}}