[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 09/10] Fixed a bug that caused the IPv4 address to be overwritten.

From: "Darryl L. Pierce" <dpierce redhat com>

The code had been updated to overcome some pylint complaints about
fields not being initialized in __init__. They were added after the
point where their initial values were assigned.

This patch moves that initialization to the point after theyr are first
 src/virtManagerTui/networkconfig.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/virtManagerTui/networkconfig.py b/src/virtManagerTui/networkconfig.py
index 2258ec1..09f038a 100644
--- a/src/virtManagerTui/networkconfig.py
+++ b/src/virtManagerTui/networkconfig.py
@@ -21,12 +21,12 @@ from IPy import IP
 class NetworkConfig:
     def __init__(self):
         self.__name = ""
-        self.set_ipv4_address("")
         self.__isolated_network = True
         self.__physical_device = ""
         self.__ipv4_end = None
         self.__ipv4_start = None
         self.__ipv4_address = None
+        self.set_ipv4_address("")
     def set_name(self, name):
         self.__name = name

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]