{"action":"closed","issue":{"url":"https://api.github.com/repos/linode/python-linode-api/issues/57","repository_url":"https://api.github.com/repos/linode/python-linode-api","labels_url":"https://api.github.com/repos/linode/python-linode-api/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/linode/python-linode-api/issues/57/comments","events_url":"https://api.github.com/repos/linode/python-linode-api/issues/57/events","html_url":"https://github.com/linode/python-linode-api/issues/57","id":267231490,"number":57,"title":"create_instance error with 4.1.4b1","user":{"login":"justinmayer","id":1503700,"avatar_url":"https://avatars2.githubusercontent.com/u/1503700?v=4","gravatar_id":"","url":"https://api.github.com/users/justinmayer","html_url":"https://github.com/justinmayer","followers_url":"https://api.github.com/users/justinmayer/followers","following_url":"https://api.github.com/users/justinmayer/following{/other_user}","gists_url":"https://api.github.com/users/justinmayer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmayer/subscriptions","organizations_url":"https://api.github.com/users/justinmayer/orgs","repos_url":"https://api.github.com/users/justinmayer/repos","events_url":"https://api.github.com/users/justinmayer/events{/privacy}","received_events_url":"https://api.github.com/users/justinmayer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-20T16:27:36Z","updated_at":"2017-10-22T15:05:20Z","closed_at":"2017-10-22T15:05:20Z","author_association":"NONE","body":"The following stanza completed successfully in 4.1.4b0...\r\n\r\n    s, pw = client.linode.create_instance(\r\n        linode_type,\r\n        region,\r\n        distribution=distribution,\r\n        label=label,\r\n        authorized_keys=['/path/to/.ssh/id_rsa.pub', ],\r\n    )\r\n\r\n… but after upgrading to 4.1.4b1, the following error is returned instead:\r\n\r\n```\r\n  File \"/create_linode.py\", line 10, in create_linode\r\n    authorized_keys=['/path/to/.ssh/id_rsa.pub', ],\r\n  File \"/virtualenvs/project/lib/python3.6/site-packages/linode/linode_client.py\", line 114, in create_instance\r\n    result = self.client.post('/linode/instances', data=params)\r\n  File \"/virtualenvs/project/lib/python3.6/site-packages/linode/linode_client.py\", line 468, in post\r\n    return self._api_call(*args, method=requests.post, **kwargs)\r\n  File \"/virtualenvs/project/lib/python3.6/site-packages/linode/linode_client.py\", line 427, in _api_call\r\n    body = json.dumps(data)\r\n  File \"/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py\", line 231, in dumps\r\n    return _default_encoder.encode(obj)\r\n  File \"/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py\", line 199, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py\", line 257, in iterencode\r\n    return _iterencode(o, 0)\r\n  File \"/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py\", line 180, in default\r\n    o.__class__.__name__)\r\nTypeError: Object of type 'module' is not JSON serializable\r\n```"}}
{"actor":{"display_login":"justinmayer"}}