{"action":"created","issue":{"url":"https://api.github.com/repos/qubole/qds-sdk-py/issues/147","repository_url":"https://api.github.com/repos/qubole/qds-sdk-py","labels_url":"https://api.github.com/repos/qubole/qds-sdk-py/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/qubole/qds-sdk-py/issues/147/comments","events_url":"https://api.github.com/repos/qubole/qds-sdk-py/issues/147/events","html_url":"https://github.com/qubole/qds-sdk-py/pull/147","id":143415450,"number":147,"title":"fixes #144 in qubole/qds-sdk-py","user":{"login":"vogxn","id":1272270,"avatar_url":"https://avatars.githubusercontent.com/u/1272270?v=3","gravatar_id":"","url":"https://api.github.com/users/vogxn","html_url":"https://github.com/vogxn","followers_url":"https://api.github.com/users/vogxn/followers","following_url":"https://api.github.com/users/vogxn/following{/other_user}","gists_url":"https://api.github.com/users/vogxn/gists{/gist_id}","starred_url":"https://api.github.com/users/vogxn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogxn/subscriptions","organizations_url":"https://api.github.com/users/vogxn/orgs","repos_url":"https://api.github.com/users/vogxn/repos","events_url":"https://api.github.com/users/vogxn/events{/privacy}","received_events_url":"https://api.github.com/users/vogxn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-25T03:29:02Z","updated_at":"2016-04-14T21:46:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qubole/qds-sdk-py/pulls/147","html_url":"https://github.com/qubole/qds-sdk-py/pull/147","diff_url":"https://github.com/qubole/qds-sdk-py/pull/147.diff","patch_url":"https://github.com/qubole/qds-sdk-py/pull/147.patch"},"body":"When creating clusters with the v1.3 endpoint of the API we still make the request using the v1.2 endpoint during cluster creation. The `_parse_create_update` method accepts the\r\napi-version only to distinguish the request parameters and build the request. But the create, update\r\nand clone methods still use the default configuration of `Qubole.agent(..)` which\r\nis set to v1.2 unless all the actions in the session are `configure(..)`ed with\r\nthe v1.3 of the API.\r\n\r\nIf you want to perform some of the unsupported actions with v1.3 of the\r\ncluster API but fall back to v1.2 for commands APIs we explicitly switch the\r\nversion in the `create(..)/update(..)/clone(..)` calls which thereby alter the\r\nversion for that API call alone and leave the `cached_agent` as is for the v1.2\r\nAPIs.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/qubole/qds-sdk-py/issues/comments/210166736","html_url":"https://github.com/qubole/qds-sdk-py/pull/147#issuecomment-210166736","issue_url":"https://api.github.com/repos/qubole/qds-sdk-py/issues/147","id":210166736,"user":{"login":"harshshah87","id":5438083,"avatar_url":"https://avatars.githubusercontent.com/u/5438083?v=3","gravatar_id":"","url":"https://api.github.com/users/harshshah87","html_url":"https://github.com/harshshah87","followers_url":"https://api.github.com/users/harshshah87/followers","following_url":"https://api.github.com/users/harshshah87/following{/other_user}","gists_url":"https://api.github.com/users/harshshah87/gists{/gist_id}","starred_url":"https://api.github.com/users/harshshah87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshshah87/subscriptions","organizations_url":"https://api.github.com/users/harshshah87/orgs","repos_url":"https://api.github.com/users/harshshah87/repos","events_url":"https://api.github.com/users/harshshah87/events{/privacy}","received_events_url":"https://api.github.com/users/harshshah87/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T21:46:46Z","updated_at":"2016-04-14T21:46:46Z","body":"The changes looks good. "}}