{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments/38194253","id":38194253,"diff_hunk":"@@ -128,9 +147,14 @@ def _resourceIdentity(self, path):\n         else:\n             raise ProviderFailedException(\"Malformed kube file: %s\" % path)\n \n-    def _resetReplicas(self, path):\n-        rname = self._resourceIdentity(path)\n-        cmd = [self.kubectl, \"resize\", \"rc\", rname, \"--replicas=0\", \"--namespace=%s\" %\n+    def _scale_replicas(self, path, replicas=0):","path":"atomicapp/providers/kubernetes.py","position":null,"original_position":122,"commit_id":"57eaf39b67cb0b45d1e963b044efc4996b9448ac","original_commit_id":"f6d5343017a48f1ca9a0530720b4c0bd92aee918","user":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"body":"Correct!\r\nFixed in next patch.","created_at":"2015-08-28T12:24:12Z","updated_at":"2015-08-28T12:24:12Z","html_url":"https://github.com/projectatomic/atomicapp/pull/241#discussion_r38194253","pull_request_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments/38194253"},"html":{"href":"https://github.com/projectatomic/atomicapp/pull/241#discussion_r38194253"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241","id":43619570,"html_url":"https://github.com/projectatomic/atomicapp/pull/241","diff_url":"https://github.com/projectatomic/atomicapp/pull/241.diff","patch_url":"https://github.com/projectatomic/atomicapp/pull/241.patch","issue_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/241","number":241,"state":"open","locked":false,"title":"Fixes processing multiple k8s resource artifacts","user":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"body":"Fixes: https://github.com/projectatomic/atomicapp/issues/212\r\n\r\n - Nulecule multiple resource artifacts defined per kind of resource can now be\r\n processed without overriding earlier artifacts\r\n - Modifies the methods names as per <https://www.python.org/dev/peps/pep-0008/#method-names-and-instance-variables>\r\n - Alters order of imports as per <https://www.python.org/dev/peps/pep-0008/#imports>\r\n - Adds docstring to methods","created_at":"2015-08-28T11:45:06Z","updated_at":"2015-08-28T12:24:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"915308316211e96d9e6d63bbb2473374c9689c90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241/commits","review_comments_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241/comments","review_comment_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/241/comments","statuses_url":"https://api.github.com/repos/projectatomic/atomicapp/statuses/57eaf39b67cb0b45d1e963b044efc4996b9448ac","head":{"label":"navidshaikh:fix-212","ref":"fix-212","sha":"57eaf39b67cb0b45d1e963b044efc4996b9448ac","user":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"repo":{"id":39763937,"name":"atomicapp","full_name":"navidshaikh/atomicapp","owner":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/navidshaikh/atomicapp","description":"This is the reference implementation of the Nulecule container application Specification: Atomic App","fork":true,"url":"https://api.github.com/repos/navidshaikh/atomicapp","forks_url":"https://api.github.com/repos/navidshaikh/atomicapp/forks","keys_url":"https://api.github.com/repos/navidshaikh/atomicapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/navidshaikh/atomicapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/navidshaikh/atomicapp/teams","hooks_url":"https://api.github.com/repos/navidshaikh/atomicapp/hooks","issue_events_url":"https://api.github.com/repos/navidshaikh/atomicapp/issues/events{/number}","events_url":"https://api.github.com/repos/navidshaikh/atomicapp/events","assignees_url":"https://api.github.com/repos/navidshaikh/atomicapp/assignees{/user}","branches_url":"https://api.github.com/repos/navidshaikh/atomicapp/branches{/branch}","tags_url":"https://api.github.com/repos/navidshaikh/atomicapp/tags","blobs_url":"https://api.github.com/repos/navidshaikh/atomicapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/navidshaikh/atomicapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/navidshaikh/atomicapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/navidshaikh/atomicapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/navidshaikh/atomicapp/statuses/{sha}","languages_url":"https://api.github.com/repos/navidshaikh/atomicapp/languages","stargazers_url":"https://api.github.com/repos/navidshaikh/atomicapp/stargazers","contributors_url":"https://api.github.com/repos/navidshaikh/atomicapp/contributors","subscribers_url":"https://api.github.com/repos/navidshaikh/atomicapp/subscribers","subscription_url":"https://api.github.com/repos/navidshaikh/atomicapp/subscription","commits_url":"https://api.github.com/repos/navidshaikh/atomicapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/navidshaikh/atomicapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/navidshaikh/atomicapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/navidshaikh/atomicapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/navidshaikh/atomicapp/contents/{+path}","compare_url":"https://api.github.com/repos/navidshaikh/atomicapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/navidshaikh/atomicapp/merges","archive_url":"https://api.github.com/repos/navidshaikh/atomicapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/navidshaikh/atomicapp/downloads","issues_url":"https://api.github.com/repos/navidshaikh/atomicapp/issues{/number}","pulls_url":"https://api.github.com/repos/navidshaikh/atomicapp/pulls{/number}","milestones_url":"https://api.github.com/repos/navidshaikh/atomicapp/milestones{/number}","notifications_url":"https://api.github.com/repos/navidshaikh/atomicapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/navidshaikh/atomicapp/labels{/name}","releases_url":"https://api.github.com/repos/navidshaikh/atomicapp/releases{/id}","created_at":"2015-07-27T08:38:37Z","updated_at":"2015-07-27T08:38:38Z","pushed_at":"2015-08-28T12:22:56Z","git_url":"git://github.com/navidshaikh/atomicapp.git","ssh_url":"git@github.com:navidshaikh/atomicapp.git","clone_url":"https://github.com/navidshaikh/atomicapp.git","svn_url":"https://github.com/navidshaikh/atomicapp","homepage":"","size":648,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"projectatomic:master","ref":"master","sha":"a2e2ce936962c1c5f0899e4be1947f3477532322","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":32819266,"name":"atomicapp","full_name":"projectatomic/atomicapp","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/atomicapp","description":"This is the reference implementation of the Nulecule container application Specification: Atomic App","fork":false,"url":"https://api.github.com/repos/projectatomic/atomicapp","forks_url":"https://api.github.com/repos/projectatomic/atomicapp/forks","keys_url":"https://api.github.com/repos/projectatomic/atomicapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/atomicapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/atomicapp/teams","hooks_url":"https://api.github.com/repos/projectatomic/atomicapp/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/atomicapp/events","assignees_url":"https://api.github.com/repos/projectatomic/atomicapp/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/atomicapp/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/atomicapp/tags","blobs_url":"https://api.github.com/repos/projectatomic/atomicapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/atomicapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/atomicapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/atomicapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/atomicapp/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/atomicapp/languages","stargazers_url":"https://api.github.com/repos/projectatomic/atomicapp/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/atomicapp/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/atomicapp/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/atomicapp/subscription","commits_url":"https://api.github.com/repos/projectatomic/atomicapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/atomicapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/atomicapp/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/atomicapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/atomicapp/merges","archive_url":"https://api.github.com/repos/projectatomic/atomicapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/atomicapp/downloads","issues_url":"https://api.github.com/repos/projectatomic/atomicapp/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/atomicapp/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/atomicapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/atomicapp/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/atomicapp/releases{/id}","created_at":"2015-03-24T19:09:39Z","updated_at":"2015-08-27T15:05:13Z","pushed_at":"2015-08-28T12:22:57Z","git_url":"git://github.com/projectatomic/atomicapp.git","ssh_url":"git@github.com:projectatomic/atomicapp.git","clone_url":"https://github.com/projectatomic/atomicapp.git","svn_url":"https://github.com/projectatomic/atomicapp","homepage":"","size":1997,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":51,"forks":31,"open_issues":51,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241"},"html":{"href":"https://github.com/projectatomic/atomicapp/pull/241"},"issue":{"href":"https://api.github.com/repos/projectatomic/atomicapp/issues/241"},"comments":{"href":"https://api.github.com/repos/projectatomic/atomicapp/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/atomicapp/statuses/57eaf39b67cb0b45d1e963b044efc4996b9448ac"}}}}