{"action":"created","comment":{"url":"https://api.github.com/repos/metacloud/molecule/pulls/comments/72122797","id":72122797,"diff_hunk":"@@ -32,58 +32,28 @@ class InvalidHost(Exception):\n class BaseCommand:\n     __metaclass__ = abc.ABCMeta\n \n-    def __init__(self, command_args, global_args, molecule=False):\n+    def __init__(self, command_args, args, molecule=False):\n         \"\"\"\n         Initialize commands\n \n         :param command_args: arguments of the command\n-        :param global_args: arguments from the CLI\n+        :param args: arguments from the CLI\n         :param molecule: molecule instance\n         \"\"\"\n         self.args = docopt.docopt(self.__doc__, argv=command_args)\n         self.args['<command>'] = self.__class__.__name__.lower()\n         self.command_args = command_args\n \n-        self.static = False\n+        self.molecule = core.Molecule(self.args)\n+        self.main()\n \n-        # give us the option to reuse an existing molecule instance\n-        if not molecule:\n-            self.molecule = core.Molecule(self.args)\n-            self.molecule.main()\n-        else:\n-            self.molecule = molecule","path":"molecule/commands/base.py","position":27,"original_position":27,"commit_id":"0b321fada03c82d82851e94b1e66b9dd84cf4ade","original_commit_id":"0b321fada03c82d82851e94b1e66b9dd84cf4ade","user":{"login":"russ216","id":1470216,"avatar_url":"https://avatars.githubusercontent.com/u/1470216?v=3","gravatar_id":"","url":"https://api.github.com/users/russ216","html_url":"https://github.com/russ216","followers_url":"https://api.github.com/users/russ216/followers","following_url":"https://api.github.com/users/russ216/following{/other_user}","gists_url":"https://api.github.com/users/russ216/gists{/gist_id}","starred_url":"https://api.github.com/users/russ216/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russ216/subscriptions","organizations_url":"https://api.github.com/users/russ216/orgs","repos_url":"https://api.github.com/users/russ216/repos","events_url":"https://api.github.com/users/russ216/events{/privacy}","received_events_url":"https://api.github.com/users/russ216/received_events","type":"User","site_admin":false},"body":"I was just attempting to do something like this for Issue #279 - and the first one worked fine, or something like `molecule create --provider=openstack` was fine. but when it would run through here and create new molecules, those args were lost. Looks like the ones i was using weren't attempting to reuse the molecule instance","created_at":"2016-07-25T18:56:22Z","updated_at":"2016-07-25T18:56:22Z","html_url":"https://github.com/metacloud/molecule/pull/276#discussion_r72122797","pull_request_url":"https://api.github.com/repos/metacloud/molecule/pulls/276","_links":{"self":{"href":"https://api.github.com/repos/metacloud/molecule/pulls/comments/72122797"},"html":{"href":"https://github.com/metacloud/molecule/pull/276#discussion_r72122797"},"pull_request":{"href":"https://api.github.com/repos/metacloud/molecule/pulls/276"}}},"pull_request":{"url":"https://api.github.com/repos/metacloud/molecule/pulls/276","id":78583888,"html_url":"https://github.com/metacloud/molecule/pull/276","diff_url":"https://github.com/metacloud/molecule/pull/276.diff","patch_url":"https://github.com/metacloud/molecule/pull/276.patch","issue_url":"https://api.github.com/repos/metacloud/molecule/issues/276","number":276,"state":"closed","locked":false,"title":"Corrected `molecule init`","user":{"login":"retr0h","id":9895,"avatar_url":"https://avatars.githubusercontent.com/u/9895?v=3","gravatar_id":"","url":"https://api.github.com/users/retr0h","html_url":"https://github.com/retr0h","followers_url":"https://api.github.com/users/retr0h/followers","following_url":"https://api.github.com/users/retr0h/following{/other_user}","gists_url":"https://api.github.com/users/retr0h/gists{/gist_id}","starred_url":"https://api.github.com/users/retr0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retr0h/subscriptions","organizations_url":"https://api.github.com/users/retr0h/orgs","repos_url":"https://api.github.com/users/retr0h/repos","events_url":"https://api.github.com/users/retr0h/events{/privacy}","received_events_url":"https://api.github.com/users/retr0h/received_events","type":"User","site_admin":false},"body":"Corrected bug introduced in #268.  Removed duplicate \"are we running\r\nthe init command\" logic from both the core and command base class.\r\n\r\nThe `init` sub command is unique to other commands.  It doesn't require\r\na `molecule.yml`.  Moved this logic into a method, in the parent class,\r\nso the children can change the behavior.\r\n\r\nAlso disabled static inventory introduced in #40.  We never used this,\r\nand the core needs refactored before we attempt to reintroduce it.\r\n\r\nFixes: #275","created_at":"2016-07-23T22:14:26Z","updated_at":"2016-07-25T18:56:22Z","closed_at":"2016-07-25T18:50:35Z","merged_at":"2016-07-25T18:50:35Z","merge_commit_sha":"7e2a210ed8a35c5418813f0441969423fa88244f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/metacloud/molecule/pulls/276/commits","review_comments_url":"https://api.github.com/repos/metacloud/molecule/pulls/276/comments","review_comment_url":"https://api.github.com/repos/metacloud/molecule/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metacloud/molecule/issues/276/comments","statuses_url":"https://api.github.com/repos/metacloud/molecule/statuses/0b321fada03c82d82851e94b1e66b9dd84cf4ade","head":{"label":"retr0h:bug-275","ref":"bug-275","sha":"0b321fada03c82d82851e94b1e66b9dd84cf4ade","user":{"login":"retr0h","id":9895,"avatar_url":"https://avatars.githubusercontent.com/u/9895?v=3","gravatar_id":"","url":"https://api.github.com/users/retr0h","html_url":"https://github.com/retr0h","followers_url":"https://api.github.com/users/retr0h/followers","following_url":"https://api.github.com/users/retr0h/following{/other_user}","gists_url":"https://api.github.com/users/retr0h/gists{/gist_id}","starred_url":"https://api.github.com/users/retr0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retr0h/subscriptions","organizations_url":"https://api.github.com/users/retr0h/orgs","repos_url":"https://api.github.com/users/retr0h/repos","events_url":"https://api.github.com/users/retr0h/events{/privacy}","received_events_url":"https://api.github.com/users/retr0h/received_events","type":"User","site_admin":false},"repo":{"id":51732713,"name":"maquina","full_name":"retr0h/maquina","owner":{"login":"retr0h","id":9895,"avatar_url":"https://avatars.githubusercontent.com/u/9895?v=3","gravatar_id":"","url":"https://api.github.com/users/retr0h","html_url":"https://github.com/retr0h","followers_url":"https://api.github.com/users/retr0h/followers","following_url":"https://api.github.com/users/retr0h/following{/other_user}","gists_url":"https://api.github.com/users/retr0h/gists{/gist_id}","starred_url":"https://api.github.com/users/retr0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retr0h/subscriptions","organizations_url":"https://api.github.com/users/retr0h/orgs","repos_url":"https://api.github.com/users/retr0h/repos","events_url":"https://api.github.com/users/retr0h/events{/privacy}","received_events_url":"https://api.github.com/users/retr0h/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/retr0h/maquina","description":"Automated testing for Ansible roles","fork":true,"url":"https://api.github.com/repos/retr0h/maquina","forks_url":"https://api.github.com/repos/retr0h/maquina/forks","keys_url":"https://api.github.com/repos/retr0h/maquina/keys{/key_id}","collaborators_url":"https://api.github.com/repos/retr0h/maquina/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/retr0h/maquina/teams","hooks_url":"https://api.github.com/repos/retr0h/maquina/hooks","issue_events_url":"https://api.github.com/repos/retr0h/maquina/issues/events{/number}","events_url":"https://api.github.com/repos/retr0h/maquina/events","assignees_url":"https://api.github.com/repos/retr0h/maquina/assignees{/user}","branches_url":"https://api.github.com/repos/retr0h/maquina/branches{/branch}","tags_url":"https://api.github.com/repos/retr0h/maquina/tags","blobs_url":"https://api.github.com/repos/retr0h/maquina/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/retr0h/maquina/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/retr0h/maquina/git/refs{/sha}","trees_url":"https://api.github.com/repos/retr0h/maquina/git/trees{/sha}","statuses_url":"https://api.github.com/repos/retr0h/maquina/statuses/{sha}","languages_url":"https://api.github.com/repos/retr0h/maquina/languages","stargazers_url":"https://api.github.com/repos/retr0h/maquina/stargazers","contributors_url":"https://api.github.com/repos/retr0h/maquina/contributors","subscribers_url":"https://api.github.com/repos/retr0h/maquina/subscribers","subscription_url":"https://api.github.com/repos/retr0h/maquina/subscription","commits_url":"https://api.github.com/repos/retr0h/maquina/commits{/sha}","git_commits_url":"https://api.github.com/repos/retr0h/maquina/git/commits{/sha}","comments_url":"https://api.github.com/repos/retr0h/maquina/comments{/number}","issue_comment_url":"https://api.github.com/repos/retr0h/maquina/issues/comments{/number}","contents_url":"https://api.github.com/repos/retr0h/maquina/contents/{+path}","compare_url":"https://api.github.com/repos/retr0h/maquina/compare/{base}...{head}","merges_url":"https://api.github.com/repos/retr0h/maquina/merges","archive_url":"https://api.github.com/repos/retr0h/maquina/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/retr0h/maquina/downloads","issues_url":"https://api.github.com/repos/retr0h/maquina/issues{/number}","pulls_url":"https://api.github.com/repos/retr0h/maquina/pulls{/number}","milestones_url":"https://api.github.com/repos/retr0h/maquina/milestones{/number}","notifications_url":"https://api.github.com/repos/retr0h/maquina/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/retr0h/maquina/labels{/name}","releases_url":"https://api.github.com/repos/retr0h/maquina/releases{/id}","deployments_url":"https://api.github.com/repos/retr0h/maquina/deployments","created_at":"2016-02-15T05:23:20Z","updated_at":"2016-05-13T16:43:52Z","pushed_at":"2016-07-25T18:50:37Z","git_url":"git://github.com/retr0h/maquina.git","ssh_url":"git@github.com:retr0h/maquina.git","clone_url":"https://github.com/retr0h/maquina.git","svn_url":"https://github.com/retr0h/maquina","homepage":"","size":2995,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"metacloud:master","ref":"master","sha":"9239349e6c8eb56242e664410dbc62ac6499bd89","user":{"login":"metacloud","id":1141400,"avatar_url":"https://avatars.githubusercontent.com/u/1141400?v=3","gravatar_id":"","url":"https://api.github.com/users/metacloud","html_url":"https://github.com/metacloud","followers_url":"https://api.github.com/users/metacloud/followers","following_url":"https://api.github.com/users/metacloud/following{/other_user}","gists_url":"https://api.github.com/users/metacloud/gists{/gist_id}","starred_url":"https://api.github.com/users/metacloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metacloud/subscriptions","organizations_url":"https://api.github.com/users/metacloud/orgs","repos_url":"https://api.github.com/users/metacloud/repos","events_url":"https://api.github.com/users/metacloud/events{/privacy}","received_events_url":"https://api.github.com/users/metacloud/received_events","type":"Organization","site_admin":false},"repo":{"id":46383942,"name":"molecule","full_name":"metacloud/molecule","owner":{"login":"metacloud","id":1141400,"avatar_url":"https://avatars.githubusercontent.com/u/1141400?v=3","gravatar_id":"","url":"https://api.github.com/users/metacloud","html_url":"https://github.com/metacloud","followers_url":"https://api.github.com/users/metacloud/followers","following_url":"https://api.github.com/users/metacloud/following{/other_user}","gists_url":"https://api.github.com/users/metacloud/gists{/gist_id}","starred_url":"https://api.github.com/users/metacloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metacloud/subscriptions","organizations_url":"https://api.github.com/users/metacloud/orgs","repos_url":"https://api.github.com/users/metacloud/repos","events_url":"https://api.github.com/users/metacloud/events{/privacy}","received_events_url":"https://api.github.com/users/metacloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metacloud/molecule","description":"Automated testing for Ansible roles","fork":false,"url":"https://api.github.com/repos/metacloud/molecule","forks_url":"https://api.github.com/repos/metacloud/molecule/forks","keys_url":"https://api.github.com/repos/metacloud/molecule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metacloud/molecule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metacloud/molecule/teams","hooks_url":"https://api.github.com/repos/metacloud/molecule/hooks","issue_events_url":"https://api.github.com/repos/metacloud/molecule/issues/events{/number}","events_url":"https://api.github.com/repos/metacloud/molecule/events","assignees_url":"https://api.github.com/repos/metacloud/molecule/assignees{/user}","branches_url":"https://api.github.com/repos/metacloud/molecule/branches{/branch}","tags_url":"https://api.github.com/repos/metacloud/molecule/tags","blobs_url":"https://api.github.com/repos/metacloud/molecule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metacloud/molecule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metacloud/molecule/git/refs{/sha}","trees_url":"https://api.github.com/repos/metacloud/molecule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metacloud/molecule/statuses/{sha}","languages_url":"https://api.github.com/repos/metacloud/molecule/languages","stargazers_url":"https://api.github.com/repos/metacloud/molecule/stargazers","contributors_url":"https://api.github.com/repos/metacloud/molecule/contributors","subscribers_url":"https://api.github.com/repos/metacloud/molecule/subscribers","subscription_url":"https://api.github.com/repos/metacloud/molecule/subscription","commits_url":"https://api.github.com/repos/metacloud/molecule/commits{/sha}","git_commits_url":"https://api.github.com/repos/metacloud/molecule/git/commits{/sha}","comments_url":"https://api.github.com/repos/metacloud/molecule/comments{/number}","issue_comment_url":"https://api.github.com/repos/metacloud/molecule/issues/comments{/number}","contents_url":"https://api.github.com/repos/metacloud/molecule/contents/{+path}","compare_url":"https://api.github.com/repos/metacloud/molecule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metacloud/molecule/merges","archive_url":"https://api.github.com/repos/metacloud/molecule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metacloud/molecule/downloads","issues_url":"https://api.github.com/repos/metacloud/molecule/issues{/number}","pulls_url":"https://api.github.com/repos/metacloud/molecule/pulls{/number}","milestones_url":"https://api.github.com/repos/metacloud/molecule/milestones{/number}","notifications_url":"https://api.github.com/repos/metacloud/molecule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metacloud/molecule/labels{/name}","releases_url":"https://api.github.com/repos/metacloud/molecule/releases{/id}","deployments_url":"https://api.github.com/repos/metacloud/molecule/deployments","created_at":"2015-11-18T00:13:28Z","updated_at":"2016-07-25T08:17:39Z","pushed_at":"2016-07-25T18:50:36Z","git_url":"git://github.com/metacloud/molecule.git","ssh_url":"git@github.com:metacloud/molecule.git","clone_url":"https://github.com/metacloud/molecule.git","svn_url":"https://github.com/metacloud/molecule","homepage":"http://molecule.readthedocs.org","size":3205,"stargazers_count":135,"watchers_count":135,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":15,"forks":35,"open_issues":15,"watchers":135,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metacloud/molecule/pulls/276"},"html":{"href":"https://github.com/metacloud/molecule/pull/276"},"issue":{"href":"https://api.github.com/repos/metacloud/molecule/issues/276"},"comments":{"href":"https://api.github.com/repos/metacloud/molecule/issues/276/comments"},"review_comments":{"href":"https://api.github.com/repos/metacloud/molecule/pulls/276/comments"},"review_comment":{"href":"https://api.github.com/repos/metacloud/molecule/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metacloud/molecule/pulls/276/commits"},"statuses":{"href":"https://api.github.com/repos/metacloud/molecule/statuses/0b321fada03c82d82851e94b1e66b9dd84cf4ade"}}}}
{"actor":{"display_login":"russ216"}}