GitHub PullRequestReviewCommentEvent at 2014-03-17 21:06:26
Repository: robottelo
Actor: omaciel
Payload: {"comment":{"url":"https://api.github.com/repos/omaciel/robottelo/pulls/comments/10678901","id":10678901,"diff_hunk":"@@ -32,3 +32,42 @@ def __init__(self):\n         Sets the base command for class.\n         \"\"\"\n         Base.__init__(self)\n+\n+    @classmethod\n+    def exists(cls, organization_id, tuple_search=None):\n+        \"\"\"\n+        Search for a lifecycle environment.\n+        \"\"\"\n+\n+        # Katello subcommands require the organization-id\n+        options = {}\n+\n+        if tuple_search:\n+            search_criteria = \"%s:\\\"%s\\\"\" % (tuple_search[0], tuple_search[1])\n+            options[\"search\"] = search_criteria\n+        # Katello subcommands require extra arguments such as organization-id\n+\n+        result = cls.list(organization_id, options)\n+\n+        if result.stdout:\n+            result.stdout = result.stdout[0]\n+\n+        return result\n+\n+    @classmethod\n+    def list(cls, organization_id, options=None):\n+        \"\"\"\n+        Lists available GPG Keys.","path":"robottelo/cli/lifecycleenvironment.py","position":29,"original_position":29,"commit_id":"4369c4252f4234811916829421dd14c425c42470","original_commit_id":"4369c4252f4234811916829421dd14c425c42470","user":{"login":"omaciel","id":53362,"avatar_url":"https://gravatar.com/avatar/5be9b08cd178f87cca6de19f00a9992c?d=https%3A%2F%2Fidenticons.github.com%2F39332ecd0f17eda90f20369c8a0f7673.png&r=x","gravatar_id":"5be9b08cd178f87cca6de19f00a9992c","url":"https://api.github.com/users/omaciel","html_url":"https://github.com/omaciel","followers_url":"https://api.github.com/users/omaciel/followers","following_url":"https://api.github.com/users/omaciel/following{/other_user}","gists_url":"https://api.github.com/users/omaciel/gists{/gist_id}","starred_url":"https://api.github.com/users/omaciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omaciel/subscriptions","organizations_url":"https://api.github.com/users/omaciel/orgs","repos_url":"https://api.github.com/users/omaciel/repos","events_url":"https://api.github.com/users/omaciel/events{/privacy}","received_events_url":"https://api.github.com/users/omaciel/received_events","type":"User","site_admin":false},"body":"Aye","created_at":"2014-03-17T21:06:26Z","updated_at":"2014-03-17T21:06:26Z","html_url":"https://github.com/omaciel/robottelo/pull/518#discussion_r10678901","pull_request_url":"https://api.github.com/repos/omaciel/robottelo/pulls/518","_links":{"self":{"href":"https://api.github.com/repos/omaciel/robottelo/pulls/comments/10678901"},"html":{"href":"https://github.com/omaciel/robottelo/pull/518#discussion_r10678901"},"pull_request":{"href":"https://api.github.com/repos/omaciel/robottelo/pulls/518"}}}}