{"action":"created","comment":{"url":"https://api.github.com/repos/containers-tools/cct/pulls/comments/66062991","id":66062991,"diff_hunk":"@@ -84,11 +84,10 @@ def run_cli(self, *command):\n         self._run_jboss_cli(' '.join(command))\n \n     def _clear(self):\n-        shutil.rmtree(self.jboss_home + \"/standalone/log\")\n-        shutil.rmtree(self.jboss_home + \"/standalone/data\")\n-        shutil.rmtree(self.jboss_home + \"/standalone/tmp/vfs\")\n-        shutil.rmtree(self.jboss_home + \"/standalone/tmp/work\")\n-        shutil.rmtree(self.jboss_home + \"/standalone/configuration/standalone_xml_history\")\n+        for part in [\"log\",\"data\", \"tmp/vfs\", \"tmp/work\", \"configuration/standalone_xml_history\"]:\n+            path = os.path.join(self.jboss_home, \"standalone\", part)","path":"cct/lib/jboss_module.py","position":10,"original_position":10,"commit_id":"1f0a75f179cc9444d52655bfd635efb683c57ace","original_commit_id":"1f0a75f179cc9444d52655bfd635efb683c57ace","user":{"login":"goldmann","id":43489,"avatar_url":"https://avatars.githubusercontent.com/u/43489?v=3","gravatar_id":"","url":"https://api.github.com/users/goldmann","html_url":"https://github.com/goldmann","followers_url":"https://api.github.com/users/goldmann/followers","following_url":"https://api.github.com/users/goldmann/following{/other_user}","gists_url":"https://api.github.com/users/goldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/goldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldmann/subscriptions","organizations_url":"https://api.github.com/users/goldmann/orgs","repos_url":"https://api.github.com/users/goldmann/repos","events_url":"https://api.github.com/users/goldmann/events{/privacy}","received_events_url":"https://api.github.com/users/goldmann/received_events","type":"User","site_admin":false},"body":"It's funny how we use now the `os.path.join` here but not one line above :)","created_at":"2016-06-07T12:43:31Z","updated_at":"2016-06-07T12:43:31Z","html_url":"https://github.com/containers-tools/cct/pull/31#discussion_r66062991","pull_request_url":"https://api.github.com/repos/containers-tools/cct/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/containers-tools/cct/pulls/comments/66062991"},"html":{"href":"https://github.com/containers-tools/cct/pull/31#discussion_r66062991"},"pull_request":{"href":"https://api.github.com/repos/containers-tools/cct/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/containers-tools/cct/pulls/31","id":72863007,"html_url":"https://github.com/containers-tools/cct/pull/31","diff_url":"https://github.com/containers-tools/cct/pull/31.diff","patch_url":"https://github.com/containers-tools/cct/pull/31.patch","issue_url":"https://api.github.com/repos/containers-tools/cct/issues/31","number":31,"state":"open","locked":false,"title":"jboss_module: check path exists before removal","user":{"login":"jmtd","id":63694,"avatar_url":"https://avatars.githubusercontent.com/u/63694?v=3","gravatar_id":"","url":"https://api.github.com/users/jmtd","html_url":"https://github.com/jmtd","followers_url":"https://api.github.com/users/jmtd/followers","following_url":"https://api.github.com/users/jmtd/following{/other_user}","gists_url":"https://api.github.com/users/jmtd/gists{/gist_id}","starred_url":"https://api.github.com/users/jmtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmtd/subscriptions","organizations_url":"https://api.github.com/users/jmtd/orgs","repos_url":"https://api.github.com/users/jmtd/repos","events_url":"https://api.github.com/users/jmtd/events{/privacy}","received_events_url":"https://api.github.com/users/jmtd/received_events","type":"User","site_admin":false},"body":"This fixes a problem I encountered applying samples/jboss_cli.yaml,\r\nwhere tmp/work does not exist in my particular situation.","created_at":"2016-06-07T12:07:04Z","updated_at":"2016-06-07T12:43:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09d9e4d4ca12980e4ce597a16c463429a8687faa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/containers-tools/cct/pulls/31/commits","review_comments_url":"https://api.github.com/repos/containers-tools/cct/pulls/31/comments","review_comment_url":"https://api.github.com/repos/containers-tools/cct/pulls/comments{/number}","comments_url":"https://api.github.com/repos/containers-tools/cct/issues/31/comments","statuses_url":"https://api.github.com/repos/containers-tools/cct/statuses/1f0a75f179cc9444d52655bfd635efb683c57ace","head":{"label":"jmtd:jmtd-fix-jboss-cli-clean","ref":"jmtd-fix-jboss-cli-clean","sha":"1f0a75f179cc9444d52655bfd635efb683c57ace","user":{"login":"jmtd","id":63694,"avatar_url":"https://avatars.githubusercontent.com/u/63694?v=3","gravatar_id":"","url":"https://api.github.com/users/jmtd","html_url":"https://github.com/jmtd","followers_url":"https://api.github.com/users/jmtd/followers","following_url":"https://api.github.com/users/jmtd/following{/other_user}","gists_url":"https://api.github.com/users/jmtd/gists{/gist_id}","starred_url":"https://api.github.com/users/jmtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmtd/subscriptions","organizations_url":"https://api.github.com/users/jmtd/orgs","repos_url":"https://api.github.com/users/jmtd/repos","events_url":"https://api.github.com/users/jmtd/events{/privacy}","received_events_url":"https://api.github.com/users/jmtd/received_events","type":"User","site_admin":false},"repo":{"id":55513340,"name":"cct","full_name":"jmtd/cct","owner":{"login":"jmtd","id":63694,"avatar_url":"https://avatars.githubusercontent.com/u/63694?v=3","gravatar_id":"","url":"https://api.github.com/users/jmtd","html_url":"https://github.com/jmtd","followers_url":"https://api.github.com/users/jmtd/followers","following_url":"https://api.github.com/users/jmtd/following{/other_user}","gists_url":"https://api.github.com/users/jmtd/gists{/gist_id}","starred_url":"https://api.github.com/users/jmtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmtd/subscriptions","organizations_url":"https://api.github.com/users/jmtd/orgs","repos_url":"https://api.github.com/users/jmtd/repos","events_url":"https://api.github.com/users/jmtd/events{/privacy}","received_events_url":"https://api.github.com/users/jmtd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmtd/cct","description":"containers configuration tool","fork":true,"url":"https://api.github.com/repos/jmtd/cct","forks_url":"https://api.github.com/repos/jmtd/cct/forks","keys_url":"https://api.github.com/repos/jmtd/cct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmtd/cct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmtd/cct/teams","hooks_url":"https://api.github.com/repos/jmtd/cct/hooks","issue_events_url":"https://api.github.com/repos/jmtd/cct/issues/events{/number}","events_url":"https://api.github.com/repos/jmtd/cct/events","assignees_url":"https://api.github.com/repos/jmtd/cct/assignees{/user}","branches_url":"https://api.github.com/repos/jmtd/cct/branches{/branch}","tags_url":"https://api.github.com/repos/jmtd/cct/tags","blobs_url":"https://api.github.com/repos/jmtd/cct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmtd/cct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmtd/cct/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmtd/cct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmtd/cct/statuses/{sha}","languages_url":"https://api.github.com/repos/jmtd/cct/languages","stargazers_url":"https://api.github.com/repos/jmtd/cct/stargazers","contributors_url":"https://api.github.com/repos/jmtd/cct/contributors","subscribers_url":"https://api.github.com/repos/jmtd/cct/subscribers","subscription_url":"https://api.github.com/repos/jmtd/cct/subscription","commits_url":"https://api.github.com/repos/jmtd/cct/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmtd/cct/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmtd/cct/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmtd/cct/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmtd/cct/contents/{+path}","compare_url":"https://api.github.com/repos/jmtd/cct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmtd/cct/merges","archive_url":"https://api.github.com/repos/jmtd/cct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmtd/cct/downloads","issues_url":"https://api.github.com/repos/jmtd/cct/issues{/number}","pulls_url":"https://api.github.com/repos/jmtd/cct/pulls{/number}","milestones_url":"https://api.github.com/repos/jmtd/cct/milestones{/number}","notifications_url":"https://api.github.com/repos/jmtd/cct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmtd/cct/labels{/name}","releases_url":"https://api.github.com/repos/jmtd/cct/releases{/id}","deployments_url":"https://api.github.com/repos/jmtd/cct/deployments","created_at":"2016-04-05T14:09:16Z","updated_at":"2016-04-05T14:09:16Z","pushed_at":"2016-06-07T12:24:32Z","git_url":"git://github.com/jmtd/cct.git","ssh_url":"git@github.com:jmtd/cct.git","clone_url":"https://github.com/jmtd/cct.git","svn_url":"https://github.com/jmtd/cct","homepage":null,"size":116,"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":"containers-tools:master","ref":"master","sha":"f7a152e8e33778556e0e2c9482ae4f9a1d2b1b51","user":{"login":"containers-tools","id":12560058,"avatar_url":"https://avatars.githubusercontent.com/u/12560058?v=3","gravatar_id":"","url":"https://api.github.com/users/containers-tools","html_url":"https://github.com/containers-tools","followers_url":"https://api.github.com/users/containers-tools/followers","following_url":"https://api.github.com/users/containers-tools/following{/other_user}","gists_url":"https://api.github.com/users/containers-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/containers-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containers-tools/subscriptions","organizations_url":"https://api.github.com/users/containers-tools/orgs","repos_url":"https://api.github.com/users/containers-tools/repos","events_url":"https://api.github.com/users/containers-tools/events{/privacy}","received_events_url":"https://api.github.com/users/containers-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":36220969,"name":"cct","full_name":"containers-tools/cct","owner":{"login":"containers-tools","id":12560058,"avatar_url":"https://avatars.githubusercontent.com/u/12560058?v=3","gravatar_id":"","url":"https://api.github.com/users/containers-tools","html_url":"https://github.com/containers-tools","followers_url":"https://api.github.com/users/containers-tools/followers","following_url":"https://api.github.com/users/containers-tools/following{/other_user}","gists_url":"https://api.github.com/users/containers-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/containers-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containers-tools/subscriptions","organizations_url":"https://api.github.com/users/containers-tools/orgs","repos_url":"https://api.github.com/users/containers-tools/repos","events_url":"https://api.github.com/users/containers-tools/events{/privacy}","received_events_url":"https://api.github.com/users/containers-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/containers-tools/cct","description":"containers configuration tool","fork":false,"url":"https://api.github.com/repos/containers-tools/cct","forks_url":"https://api.github.com/repos/containers-tools/cct/forks","keys_url":"https://api.github.com/repos/containers-tools/cct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/containers-tools/cct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/containers-tools/cct/teams","hooks_url":"https://api.github.com/repos/containers-tools/cct/hooks","issue_events_url":"https://api.github.com/repos/containers-tools/cct/issues/events{/number}","events_url":"https://api.github.com/repos/containers-tools/cct/events","assignees_url":"https://api.github.com/repos/containers-tools/cct/assignees{/user}","branches_url":"https://api.github.com/repos/containers-tools/cct/branches{/branch}","tags_url":"https://api.github.com/repos/containers-tools/cct/tags","blobs_url":"https://api.github.com/repos/containers-tools/cct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/containers-tools/cct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/containers-tools/cct/git/refs{/sha}","trees_url":"https://api.github.com/repos/containers-tools/cct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/containers-tools/cct/statuses/{sha}","languages_url":"https://api.github.com/repos/containers-tools/cct/languages","stargazers_url":"https://api.github.com/repos/containers-tools/cct/stargazers","contributors_url":"https://api.github.com/repos/containers-tools/cct/contributors","subscribers_url":"https://api.github.com/repos/containers-tools/cct/subscribers","subscription_url":"https://api.github.com/repos/containers-tools/cct/subscription","commits_url":"https://api.github.com/repos/containers-tools/cct/commits{/sha}","git_commits_url":"https://api.github.com/repos/containers-tools/cct/git/commits{/sha}","comments_url":"https://api.github.com/repos/containers-tools/cct/comments{/number}","issue_comment_url":"https://api.github.com/repos/containers-tools/cct/issues/comments{/number}","contents_url":"https://api.github.com/repos/containers-tools/cct/contents/{+path}","compare_url":"https://api.github.com/repos/containers-tools/cct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/containers-tools/cct/merges","archive_url":"https://api.github.com/repos/containers-tools/cct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/containers-tools/cct/downloads","issues_url":"https://api.github.com/repos/containers-tools/cct/issues{/number}","pulls_url":"https://api.github.com/repos/containers-tools/cct/pulls{/number}","milestones_url":"https://api.github.com/repos/containers-tools/cct/milestones{/number}","notifications_url":"https://api.github.com/repos/containers-tools/cct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/containers-tools/cct/labels{/name}","releases_url":"https://api.github.com/repos/containers-tools/cct/releases{/id}","deployments_url":"https://api.github.com/repos/containers-tools/cct/deployments","created_at":"2015-05-25T09:03:41Z","updated_at":"2016-02-09T20:53:13Z","pushed_at":"2016-06-07T12:24:32Z","git_url":"git://github.com/containers-tools/cct.git","ssh_url":"git@github.com:containers-tools/cct.git","clone_url":"https://github.com/containers-tools/cct.git","svn_url":"https://github.com/containers-tools/cct","homepage":null,"size":104,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/containers-tools/cct/pulls/31"},"html":{"href":"https://github.com/containers-tools/cct/pull/31"},"issue":{"href":"https://api.github.com/repos/containers-tools/cct/issues/31"},"comments":{"href":"https://api.github.com/repos/containers-tools/cct/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/containers-tools/cct/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/containers-tools/cct/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/containers-tools/cct/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/containers-tools/cct/statuses/1f0a75f179cc9444d52655bfd635efb683c57ace"}}}}
{"actor":{"display_login":"goldmann"}}