[virt-tools-list] [PATCH 09/10] Fixed a bug that caused the IPv4 address to be overwritten.
Darryl L. Pierce
dpierce at redhat.com
Wed Jul 13 19:06:39 UTC 2011
From: "Darryl L. Pierce" <dpierce at 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
defined.
---
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("192.168.100.0/24")
self.__isolated_network = True
self.__physical_device = ""
self.__ipv4_end = None
self.__ipv4_start = None
self.__ipv4_address = None
+ self.set_ipv4_address("192.168.100.0/24")
def set_name(self, name):
self.__name = name
--
1.7.6
More information about the virt-tools-list
mailing list