{"action":"opened","number":974,"pull_request":{"url":"https://api.github.com/repos/lxc/lxc/pulls/974","id":66427489,"html_url":"https://github.com/lxc/lxc/pull/974","diff_url":"https://github.com/lxc/lxc/pull/974.diff","patch_url":"https://github.com/lxc/lxc/pull/974.patch","issue_url":"https://api.github.com/repos/lxc/lxc/issues/974","number":974,"state":"open","locked":false,"title":"Fixed python-lxc reference to var before assignment","user":{"login":"ar45","id":4923160,"avatar_url":"https://avatars.githubusercontent.com/u/4923160?v=3","gravatar_id":"","url":"https://api.github.com/users/ar45","html_url":"https://github.com/ar45","followers_url":"https://api.github.com/users/ar45/followers","following_url":"https://api.github.com/users/ar45/following{/other_user}","gists_url":"https://api.github.com/users/ar45/gists{/gist_id}","starred_url":"https://api.github.com/users/ar45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar45/subscriptions","organizations_url":"https://api.github.com/users/ar45/orgs","repos_url":"https://api.github.com/users/ar45/repos","events_url":"https://api.github.com/users/ar45/events{/privacy}","received_events_url":"https://api.github.com/users/ar45/received_events","type":"User","site_admin":false},"body":"```\r\n>>> c = lxc.Container('ct')\r\n>>> c.create('debian', args=('-r', 'jessie'))\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib/python3/dist-packages/lxc/__init__.py\", line 229, in\r\ncreate\r\n    template_args['args'] = tuple(tmp_args)\r\nUnboundLocalError: local variable 'tmp_args' referenced before\r\nassignment\r\n```\r\n\r\nSigned-off-by: Aron Podrigal <aronp@guaranteedplus.com>","created_at":"2016-04-14T04:25:50Z","updated_at":"2016-04-14T04:25:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lxc/lxc/pulls/974/commits","review_comments_url":"https://api.github.com/repos/lxc/lxc/pulls/974/comments","review_comment_url":"https://api.github.com/repos/lxc/lxc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/974/comments","statuses_url":"https://api.github.com/repos/lxc/lxc/statuses/9cee41def4bbaddc089ea02f85b2ed028ac5a549","head":{"label":"ar45:lxc_python_create_with_tuple","ref":"lxc_python_create_with_tuple","sha":"9cee41def4bbaddc089ea02f85b2ed028ac5a549","user":{"login":"ar45","id":4923160,"avatar_url":"https://avatars.githubusercontent.com/u/4923160?v=3","gravatar_id":"","url":"https://api.github.com/users/ar45","html_url":"https://github.com/ar45","followers_url":"https://api.github.com/users/ar45/followers","following_url":"https://api.github.com/users/ar45/following{/other_user}","gists_url":"https://api.github.com/users/ar45/gists{/gist_id}","starred_url":"https://api.github.com/users/ar45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar45/subscriptions","organizations_url":"https://api.github.com/users/ar45/orgs","repos_url":"https://api.github.com/users/ar45/repos","events_url":"https://api.github.com/users/ar45/events{/privacy}","received_events_url":"https://api.github.com/users/ar45/received_events","type":"User","site_admin":false},"repo":{"id":48765424,"name":"lxc","full_name":"ar45/lxc","owner":{"login":"ar45","id":4923160,"avatar_url":"https://avatars.githubusercontent.com/u/4923160?v=3","gravatar_id":"","url":"https://api.github.com/users/ar45","html_url":"https://github.com/ar45","followers_url":"https://api.github.com/users/ar45/followers","following_url":"https://api.github.com/users/ar45/following{/other_user}","gists_url":"https://api.github.com/users/ar45/gists{/gist_id}","starred_url":"https://api.github.com/users/ar45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar45/subscriptions","organizations_url":"https://api.github.com/users/ar45/orgs","repos_url":"https://api.github.com/users/ar45/repos","events_url":"https://api.github.com/users/ar45/events{/privacy}","received_events_url":"https://api.github.com/users/ar45/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ar45/lxc","description":"LXC - Linux Containers","fork":true,"url":"https://api.github.com/repos/ar45/lxc","forks_url":"https://api.github.com/repos/ar45/lxc/forks","keys_url":"https://api.github.com/repos/ar45/lxc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ar45/lxc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ar45/lxc/teams","hooks_url":"https://api.github.com/repos/ar45/lxc/hooks","issue_events_url":"https://api.github.com/repos/ar45/lxc/issues/events{/number}","events_url":"https://api.github.com/repos/ar45/lxc/events","assignees_url":"https://api.github.com/repos/ar45/lxc/assignees{/user}","branches_url":"https://api.github.com/repos/ar45/lxc/branches{/branch}","tags_url":"https://api.github.com/repos/ar45/lxc/tags","blobs_url":"https://api.github.com/repos/ar45/lxc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ar45/lxc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ar45/lxc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ar45/lxc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ar45/lxc/statuses/{sha}","languages_url":"https://api.github.com/repos/ar45/lxc/languages","stargazers_url":"https://api.github.com/repos/ar45/lxc/stargazers","contributors_url":"https://api.github.com/repos/ar45/lxc/contributors","subscribers_url":"https://api.github.com/repos/ar45/lxc/subscribers","subscription_url":"https://api.github.com/repos/ar45/lxc/subscription","commits_url":"https://api.github.com/repos/ar45/lxc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ar45/lxc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ar45/lxc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ar45/lxc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ar45/lxc/contents/{+path}","compare_url":"https://api.github.com/repos/ar45/lxc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ar45/lxc/merges","archive_url":"https://api.github.com/repos/ar45/lxc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ar45/lxc/downloads","issues_url":"https://api.github.com/repos/ar45/lxc/issues{/number}","pulls_url":"https://api.github.com/repos/ar45/lxc/pulls{/number}","milestones_url":"https://api.github.com/repos/ar45/lxc/milestones{/number}","notifications_url":"https://api.github.com/repos/ar45/lxc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ar45/lxc/labels{/name}","releases_url":"https://api.github.com/repos/ar45/lxc/releases{/id}","deployments_url":"https://api.github.com/repos/ar45/lxc/deployments","created_at":"2015-12-29T20:15:50Z","updated_at":"2016-03-07T23:53:44Z","pushed_at":"2016-04-14T04:24:47Z","git_url":"git://github.com/ar45/lxc.git","ssh_url":"git@github.com:ar45/lxc.git","clone_url":"https://github.com/ar45/lxc.git","svn_url":"https://github.com/ar45/lxc","homepage":"https://linuxcontainers.org","size":15045,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"lxc:master","ref":"master","sha":"8157403674e06a7620e8642c2aa585dacd1125dd","user":{"login":"lxc","id":2301756,"avatar_url":"https://avatars.githubusercontent.com/u/2301756?v=3","gravatar_id":"","url":"https://api.github.com/users/lxc","html_url":"https://github.com/lxc","followers_url":"https://api.github.com/users/lxc/followers","following_url":"https://api.github.com/users/lxc/following{/other_user}","gists_url":"https://api.github.com/users/lxc/gists{/gist_id}","starred_url":"https://api.github.com/users/lxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxc/subscriptions","organizations_url":"https://api.github.com/users/lxc/orgs","repos_url":"https://api.github.com/users/lxc/repos","events_url":"https://api.github.com/users/lxc/events{/privacy}","received_events_url":"https://api.github.com/users/lxc/received_events","type":"Organization","site_admin":false},"repo":{"id":5720995,"name":"lxc","full_name":"lxc/lxc","owner":{"login":"lxc","id":2301756,"avatar_url":"https://avatars.githubusercontent.com/u/2301756?v=3","gravatar_id":"","url":"https://api.github.com/users/lxc","html_url":"https://github.com/lxc","followers_url":"https://api.github.com/users/lxc/followers","following_url":"https://api.github.com/users/lxc/following{/other_user}","gists_url":"https://api.github.com/users/lxc/gists{/gist_id}","starred_url":"https://api.github.com/users/lxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxc/subscriptions","organizations_url":"https://api.github.com/users/lxc/orgs","repos_url":"https://api.github.com/users/lxc/repos","events_url":"https://api.github.com/users/lxc/events{/privacy}","received_events_url":"https://api.github.com/users/lxc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lxc/lxc","description":"LXC - Linux Containers","fork":false,"url":"https://api.github.com/repos/lxc/lxc","forks_url":"https://api.github.com/repos/lxc/lxc/forks","keys_url":"https://api.github.com/repos/lxc/lxc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lxc/lxc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lxc/lxc/teams","hooks_url":"https://api.github.com/repos/lxc/lxc/hooks","issue_events_url":"https://api.github.com/repos/lxc/lxc/issues/events{/number}","events_url":"https://api.github.com/repos/lxc/lxc/events","assignees_url":"https://api.github.com/repos/lxc/lxc/assignees{/user}","branches_url":"https://api.github.com/repos/lxc/lxc/branches{/branch}","tags_url":"https://api.github.com/repos/lxc/lxc/tags","blobs_url":"https://api.github.com/repos/lxc/lxc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lxc/lxc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lxc/lxc/git/refs{/sha}","trees_url":"https://api.github.com/repos/lxc/lxc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lxc/lxc/statuses/{sha}","languages_url":"https://api.github.com/repos/lxc/lxc/languages","stargazers_url":"https://api.github.com/repos/lxc/lxc/stargazers","contributors_url":"https://api.github.com/repos/lxc/lxc/contributors","subscribers_url":"https://api.github.com/repos/lxc/lxc/subscribers","subscription_url":"https://api.github.com/repos/lxc/lxc/subscription","commits_url":"https://api.github.com/repos/lxc/lxc/commits{/sha}","git_commits_url":"https://api.github.com/repos/lxc/lxc/git/commits{/sha}","comments_url":"https://api.github.com/repos/lxc/lxc/comments{/number}","issue_comment_url":"https://api.github.com/repos/lxc/lxc/issues/comments{/number}","contents_url":"https://api.github.com/repos/lxc/lxc/contents/{+path}","compare_url":"https://api.github.com/repos/lxc/lxc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lxc/lxc/merges","archive_url":"https://api.github.com/repos/lxc/lxc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lxc/lxc/downloads","issues_url":"https://api.github.com/repos/lxc/lxc/issues{/number}","pulls_url":"https://api.github.com/repos/lxc/lxc/pulls{/number}","milestones_url":"https://api.github.com/repos/lxc/lxc/milestones{/number}","notifications_url":"https://api.github.com/repos/lxc/lxc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lxc/lxc/labels{/name}","releases_url":"https://api.github.com/repos/lxc/lxc/releases{/id}","deployments_url":"https://api.github.com/repos/lxc/lxc/deployments","created_at":"2012-09-07T18:50:27Z","updated_at":"2016-04-13T22:23:10Z","pushed_at":"2016-04-13T22:47:53Z","git_url":"git://github.com/lxc/lxc.git","ssh_url":"git@github.com:lxc/lxc.git","clone_url":"https://github.com/lxc/lxc.git","svn_url":"https://github.com/lxc/lxc","homepage":"https://linuxcontainers.org/lxc","size":15862,"stargazers_count":1417,"watchers_count":1417,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":465,"mirror_url":null,"open_issues_count":205,"forks":465,"open_issues":205,"watchers":1417,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lxc/lxc/pulls/974"},"html":{"href":"https://github.com/lxc/lxc/pull/974"},"issue":{"href":"https://api.github.com/repos/lxc/lxc/issues/974"},"comments":{"href":"https://api.github.com/repos/lxc/lxc/issues/974/comments"},"review_comments":{"href":"https://api.github.com/repos/lxc/lxc/pulls/974/comments"},"review_comment":{"href":"https://api.github.com/repos/lxc/lxc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lxc/lxc/pulls/974/commits"},"statuses":{"href":"https://api.github.com/repos/lxc/lxc/statuses/9cee41def4bbaddc089ea02f85b2ed028ac5a549"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}