get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/104947/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 104947,
    "url": "http://patchwork.dpdk.org/api/patches/104947/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/1638793269-2769-1-git-send-email-juraj.linkes@pantheon.tech/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<1638793269-2769-1-git-send-email-juraj.linkes@pantheon.tech>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1638793269-2769-1-git-send-email-juraj.linkes@pantheon.tech",
    "date": "2021-12-06T12:21:09",
    "name": "[v1] framework/project_dpdk: fix pylama errors",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "a5f7438f0ec958319e1bf324c71da44b6f3daad8",
    "submitter": {
        "id": 1626,
        "url": "http://patchwork.dpdk.org/api/people/1626/?format=api",
        "name": "Juraj Linkeš",
        "email": "juraj.linkes@pantheon.tech"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/1638793269-2769-1-git-send-email-juraj.linkes@pantheon.tech/mbox/",
    "series": [
        {
            "id": 20877,
            "url": "http://patchwork.dpdk.org/api/series/20877/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=20877",
            "date": "2021-12-06T12:21:09",
            "name": "[v1] framework/project_dpdk: fix pylama errors",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20877/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104947/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/104947/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3D2F0A034F;\n\tMon,  6 Dec 2021 13:21:12 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3668341160;\n\tMon,  6 Dec 2021 13:21:12 +0100 (CET)",
            "from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20])\n by mails.dpdk.org (Postfix) with ESMTP id 34CAB410E5\n for <dts@dpdk.org>; Mon,  6 Dec 2021 13:21:11 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n by lb.pantheon.sk (Postfix) with ESMTP id C4D74134296;\n Mon,  6 Dec 2021 13:21:10 +0100 (CET)",
            "from lb.pantheon.sk ([127.0.0.1])\n by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id vpZ7Mw-ARYwk; Mon,  6 Dec 2021 13:21:09 +0100 (CET)",
            "from service-node1.lab.pantheon.local (unknown [46.229.239.141])\n by lb.pantheon.sk (Postfix) with ESMTP id AC79E130F7E;\n Mon,  6 Dec 2021 13:21:09 +0100 (CET)"
        ],
        "X-Virus-Scanned": "amavisd-new at siecit.sk",
        "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>",
        "To": "lijuan.tu@intel.com,\n\tohilyard@iol.unh.edu",
        "Cc": "dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>",
        "Subject": "[PATCH v1] framework/project_dpdk: fix pylama errors",
        "Date": "Mon,  6 Dec 2021 13:21:09 +0100",
        "Message-Id": "<1638793269-2769-1-git-send-email-juraj.linkes@pantheon.tech>",
        "X-Mailer": "git-send-email 2.7.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "Pylama found the following errors:\nframework/project_dpdk.py:292: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint]\nframework/project_dpdk.py:293: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint]\nframework/project_dpdk.py:294: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint]\nframework/project_dpdk.py:421: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint]\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\nLijuan, please add additional people to review if needed.\n---\n framework/project_dpdk.py | 11 +----------\n 1 file changed, 1 insertion(+), 10 deletions(-)",
    "diff": "diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py\nindex 9927bcc1..6001d8a4 100644\n--- a/framework/project_dpdk.py\n+++ b/framework/project_dpdk.py\n@@ -286,15 +286,6 @@ class DPDKdut(Dut):\n         shared_lib_path = load_global_setting(HOST_SHARED_LIB_PATH)\n         if use_shared_lib == 'true' and 'Virt' not in str(self):\n             self.set_build_options({'RTE_BUILD_SHARED_LIB': 'y'})\n-        kernel_driver = ''\n-        nic_name = ''\n-        if 'Virt' in str(self):\n-            if self.host_dut.nic:\n-                kernel_driver = self.host_dut.nic.default_driver\n-                nic_name = self.host_dut.nic.name\n-        elif self.nic:\n-            kernel_driver = self.nic.default_driver\n-            nic_name = self.nic.name\n \n         build_type = load_global_setting(HOST_BUILD_TYPE_SETTING)\n         build_install_dpdk = getattr(self, 'build_install_dpdk_%s_%s' % (self.get_os_type(), build_type))\n@@ -418,7 +409,7 @@ class DPDKdut(Dut):\n                                     \"--snapshot when run dts\")\n                 # if ':' in session, this is vm dut, use the dut session\n                 if ':' in self.session.name:\n-                    session_info = self.host_dut.alt_session\n+                    session_info = self.crb.alt_session\n                 else:\n                      session_info = self.alt_session\n                 out = session_info.send_expect('ls -F %s' % self.package, '# ')\n",
    "prefixes": [
        "v1"
    ]
}