The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/pylxd/pull/398

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Lee Trager <lee.tra...@canonical.com>
From 31655ce080824926368bb11d6530841a54480bfb Mon Sep 17 00:00:00 2001
From: Lee Trager <lee.tra...@canonical.com>
Date: Wed, 20 May 2020 20:51:10 +0000
Subject: [PATCH] Fix PEP8 errors introduced by new version.

Signed-off-by: Lee Trager <lee.tra...@canonical.com>
---
 pylxd/tests/mock_lxd.py | 57 ++++++++++++++++++++++-------------------
 1 file changed, 31 insertions(+), 26 deletions(-)

diff --git a/pylxd/tests/mock_lxd.py b/pylxd/tests/mock_lxd.py
index dedc6ec4..2f877410 100644
--- a/pylxd/tests/mock_lxd.py
+++ b/pylxd/tests/mock_lxd.py
@@ -208,23 +208,25 @@ def snapshot_DELETE(request, context):
             'metadata': {
                 "server_name": "an-member",
                 "enabled": 'true',
-                "member_config": [{
-                    "entity": "storage-pool",
-                    "name": "local",
-                    "key": "source",
-                    "value": "",
-                    "description":
-                        "\"source\" property for storage pool \"local\""
-                },
-                {
-                    "entity": "storage-pool",
-                    "name": "local",
-                    "key": "volatile.initial_source",
-                    "value": "",
-                    "description":
-                        "\"volatile.initial_source\" property for"
-                        " storage pool \"local\""
-                }]
+                "member_config": [
+                    {
+                        "entity": "storage-pool",
+                        "name": "local",
+                        "key": "source",
+                        "value": "",
+                        "description":
+                            "\"source\" property for storage pool \"local\""
+                    },
+                    {
+                        "entity": "storage-pool",
+                        "name": "local",
+                        "key": "volatile.initial_source",
+                        "value": "",
+                        "description":
+                            "\"volatile.initial_source\" property for"
+                            " storage pool \"local\""
+                    },
+                ]
             }
         }),
         'method': 'GET',
@@ -333,9 +335,10 @@ def snapshot_DELETE(request, context):
                 'stateful': False,
                 'status': "Running",
                 'status_code': 103,
-                'unsupportedbypylxd': "This attribute is not supported by "\
-                    "pylxd. We want to test whether the mere presence of it "\
-                    "makes it crash."
+                'unsupportedbypylxd': (
+                    "This attribute is not supported by "
+                    "pylxd. We want to test whether the mere presence of it "
+                    "makes it crash.")
             }},
         'method': 'GET',
         'url': r'^http://pylxd2.test/1.0/instances/an-instance$',
@@ -381,9 +384,10 @@ def snapshot_DELETE(request, context):
                 'stateful': False,
                 'status': "Running",
                 'status_code': 103,
-                'unsupportedbypylxd': "This attribute is not supported by "\
-                    "pylxd. We want to test whether the mere presence of it "\
-                    "makes it crash."
+                'unsupportedbypylxd': (
+                    "This attribute is not supported by "
+                    "pylxd. We want to test whether the mere presence of it "
+                    "makes it crash.")
             }},
         'method': 'GET',
         'url': r'^http://pylxd.test/1.0/instances/an-instance$',
@@ -437,9 +441,10 @@ def snapshot_DELETE(request, context):
                 'location': "an-remote",
                 'status': "Running",
                 'status_code': 103,
-                'unsupportedbypylxd': "This attribute is not supported by "\
-                    "pylxd. We want to test whether the mere presence of it "\
-                    "makes it crash."
+                'unsupportedbypylxd': (
+                    "This attribute is not supported by "
+                    "pylxd. We want to test whether the mere presence of it "
+                    "makes it crash.")
             }},
         'method': 'GET',
         'url': r'^http://pylxd.test/1.0/instances/an-new-remote-instance$',
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to