{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments/33160587","id":33160587,"diff_hunk":"@@ -251,9 +263,11 @@ def create(self, name, stack_id, username=None, ssh_keys=None,\n         :param ssh_keys: List of SSH keys; if none is specified, it will use\n                          the key `user@hostname`, creating the key from\n                          `$HOME/.ssh/id_rsa.pub` if it doesn't exist.\n-        :param node_groups: List of node group dictionaries for the cluster\n-                            for which you want to modify the stack defaults,\n-                            e.g. the node count or the flavor\n+        :param node_groups: `dict` of `(node_group_id, attrs)` pairs, in which\n+                            `attrs` is a `dict` of node group attributes.\n+                            Instead of a `dict`, you may give a `list` of\n+                            `dicts`, each containing the `id` key. Currently\n+                            supported attributes are `flavor_id` and `count`","path":"lavaclient/api/clusters.py","position":30,"original_position":30,"commit_id":"36eb13d275cc00094fd98537b90253382c0a17f4","original_commit_id":"36eb13d275cc00094fd98537b90253382c0a17f4","user":{"login":"pchanne","id":4594060,"avatar_url":"https://avatars.githubusercontent.com/u/4594060?v=3","gravatar_id":"","url":"https://api.github.com/users/pchanne","html_url":"https://github.com/pchanne","followers_url":"https://api.github.com/users/pchanne/followers","following_url":"https://api.github.com/users/pchanne/following{/other_user}","gists_url":"https://api.github.com/users/pchanne/gists{/gist_id}","starred_url":"https://api.github.com/users/pchanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchanne/subscriptions","organizations_url":"https://api.github.com/users/pchanne/orgs","repos_url":"https://api.github.com/users/pchanne/repos","events_url":"https://api.github.com/users/pchanne/events{/privacy}","received_events_url":"https://api.github.com/users/pchanne/received_events","type":"User","site_admin":false},"body":"an example here would make it more clear.","created_at":"2015-06-24T15:35:01Z","updated_at":"2015-06-24T15:35:01Z","html_url":"https://github.com/rackerlabs/python-lavaclient/pull/1#discussion_r33160587","pull_request_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments/33160587"},"html":{"href":"https://github.com/rackerlabs/python-lavaclient/pull/1#discussion_r33160587"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1","id":38387404,"html_url":"https://github.com/rackerlabs/python-lavaclient/pull/1","diff_url":"https://github.com/rackerlabs/python-lavaclient/pull/1.diff","patch_url":"https://github.com/rackerlabs/python-lavaclient/pull/1.patch","issue_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/1","number":1,"state":"open","locked":false,"title":"Allow node_groups to be a nested dict","user":{"login":"thesquelched","id":838700,"avatar_url":"https://avatars.githubusercontent.com/u/838700?v=3","gravatar_id":"","url":"https://api.github.com/users/thesquelched","html_url":"https://github.com/thesquelched","followers_url":"https://api.github.com/users/thesquelched/followers","following_url":"https://api.github.com/users/thesquelched/following{/other_user}","gists_url":"https://api.github.com/users/thesquelched/gists{/gist_id}","starred_url":"https://api.github.com/users/thesquelched/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesquelched/subscriptions","organizations_url":"https://api.github.com/users/thesquelched/orgs","repos_url":"https://api.github.com/users/thesquelched/repos","events_url":"https://api.github.com/users/thesquelched/events{/privacy}","received_events_url":"https://api.github.com/users/thesquelched/received_events","type":"User","site_admin":false},"body":"Allow `node_groups` to be either a `list` of `dicts`, or a single, nested `dict` with the node group ID's as keys.","created_at":"2015-06-23T21:53:14Z","updated_at":"2015-06-24T15:35:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"032f71036c041e1f54a5e55330f975d8e024d621","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/1/comments","statuses_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/statuses/36eb13d275cc00094fd98537b90253382c0a17f4","head":{"label":"thesquelched:node_groups","ref":"node_groups","sha":"36eb13d275cc00094fd98537b90253382c0a17f4","user":{"login":"thesquelched","id":838700,"avatar_url":"https://avatars.githubusercontent.com/u/838700?v=3","gravatar_id":"","url":"https://api.github.com/users/thesquelched","html_url":"https://github.com/thesquelched","followers_url":"https://api.github.com/users/thesquelched/followers","following_url":"https://api.github.com/users/thesquelched/following{/other_user}","gists_url":"https://api.github.com/users/thesquelched/gists{/gist_id}","starred_url":"https://api.github.com/users/thesquelched/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesquelched/subscriptions","organizations_url":"https://api.github.com/users/thesquelched/orgs","repos_url":"https://api.github.com/users/thesquelched/repos","events_url":"https://api.github.com/users/thesquelched/events{/privacy}","received_events_url":"https://api.github.com/users/thesquelched/received_events","type":"User","site_admin":false},"repo":{"id":37947084,"name":"python-lavaclient","full_name":"thesquelched/python-lavaclient","owner":{"login":"thesquelched","id":838700,"avatar_url":"https://avatars.githubusercontent.com/u/838700?v=3","gravatar_id":"","url":"https://api.github.com/users/thesquelched","html_url":"https://github.com/thesquelched","followers_url":"https://api.github.com/users/thesquelched/followers","following_url":"https://api.github.com/users/thesquelched/following{/other_user}","gists_url":"https://api.github.com/users/thesquelched/gists{/gist_id}","starred_url":"https://api.github.com/users/thesquelched/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesquelched/subscriptions","organizations_url":"https://api.github.com/users/thesquelched/orgs","repos_url":"https://api.github.com/users/thesquelched/repos","events_url":"https://api.github.com/users/thesquelched/events{/privacy}","received_events_url":"https://api.github.com/users/thesquelched/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thesquelched/python-lavaclient","description":"Command line client for Cloud Big Data","fork":true,"url":"https://api.github.com/repos/thesquelched/python-lavaclient","forks_url":"https://api.github.com/repos/thesquelched/python-lavaclient/forks","keys_url":"https://api.github.com/repos/thesquelched/python-lavaclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thesquelched/python-lavaclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thesquelched/python-lavaclient/teams","hooks_url":"https://api.github.com/repos/thesquelched/python-lavaclient/hooks","issue_events_url":"https://api.github.com/repos/thesquelched/python-lavaclient/issues/events{/number}","events_url":"https://api.github.com/repos/thesquelched/python-lavaclient/events","assignees_url":"https://api.github.com/repos/thesquelched/python-lavaclient/assignees{/user}","branches_url":"https://api.github.com/repos/thesquelched/python-lavaclient/branches{/branch}","tags_url":"https://api.github.com/repos/thesquelched/python-lavaclient/tags","blobs_url":"https://api.github.com/repos/thesquelched/python-lavaclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thesquelched/python-lavaclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thesquelched/python-lavaclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/thesquelched/python-lavaclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thesquelched/python-lavaclient/statuses/{sha}","languages_url":"https://api.github.com/repos/thesquelched/python-lavaclient/languages","stargazers_url":"https://api.github.com/repos/thesquelched/python-lavaclient/stargazers","contributors_url":"https://api.github.com/repos/thesquelched/python-lavaclient/contributors","subscribers_url":"https://api.github.com/repos/thesquelched/python-lavaclient/subscribers","subscription_url":"https://api.github.com/repos/thesquelched/python-lavaclient/subscription","commits_url":"https://api.github.com/repos/thesquelched/python-lavaclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/thesquelched/python-lavaclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/thesquelched/python-lavaclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/thesquelched/python-lavaclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/thesquelched/python-lavaclient/contents/{+path}","compare_url":"https://api.github.com/repos/thesquelched/python-lavaclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thesquelched/python-lavaclient/merges","archive_url":"https://api.github.com/repos/thesquelched/python-lavaclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thesquelched/python-lavaclient/downloads","issues_url":"https://api.github.com/repos/thesquelched/python-lavaclient/issues{/number}","pulls_url":"https://api.github.com/repos/thesquelched/python-lavaclient/pulls{/number}","milestones_url":"https://api.github.com/repos/thesquelched/python-lavaclient/milestones{/number}","notifications_url":"https://api.github.com/repos/thesquelched/python-lavaclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thesquelched/python-lavaclient/labels{/name}","releases_url":"https://api.github.com/repos/thesquelched/python-lavaclient/releases{/id}","created_at":"2015-06-23T21:51:34Z","updated_at":"2015-06-23T21:51:35Z","pushed_at":"2015-06-23T22:01:12Z","git_url":"git://github.com/thesquelched/python-lavaclient.git","ssh_url":"git@github.com:thesquelched/python-lavaclient.git","clone_url":"https://github.com/thesquelched/python-lavaclient.git","svn_url":"https://github.com/thesquelched/python-lavaclient","homepage":null,"size":260,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"2fd2c6bc9ff27c9bb545f7089a882da6b91c82d4","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":35032950,"name":"python-lavaclient","full_name":"rackerlabs/python-lavaclient","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/python-lavaclient","description":"Command line client for Cloud Big Data","fork":false,"url":"https://api.github.com/repos/rackerlabs/python-lavaclient","forks_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/forks","keys_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/teams","hooks_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/events","assignees_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/tags","blobs_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/subscription","commits_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/merges","archive_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/downloads","issues_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/releases{/id}","created_at":"2015-05-04T12:16:35Z","updated_at":"2015-06-24T14:58:03Z","pushed_at":"2015-06-23T22:02:26Z","git_url":"git://github.com/rackerlabs/python-lavaclient.git","ssh_url":"git@github.com:rackerlabs/python-lavaclient.git","clone_url":"https://github.com/rackerlabs/python-lavaclient.git","svn_url":"https://github.com/rackerlabs/python-lavaclient","homepage":null,"size":260,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1"},"html":{"href":"https://github.com/rackerlabs/python-lavaclient/pull/1"},"issue":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/1"},"comments":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/statuses/36eb13d275cc00094fd98537b90253382c0a17f4"}}}}