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

[PATCH] fix TypeError in network.py with ipv6 static addresses



Format string for --ipv6 was missing '%s'.

Interestingly this bug has been present for nearly 5 years, which tells
me that nobody actually uses static ipv6 addresses.
---
 pykickstart/commands/network.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pykickstart/commands/network.py b/pykickstart/commands/network.py
index 9b67f92..b313703 100644
--- a/pykickstart/commands/network.py
+++ b/pykickstart/commands/network.py
@@ -136,7 +136,7 @@ class F8_NetworkData(FC6_NetworkData):
         retval = FC6_NetworkData._getArgsAsStr(self)
 
         if self.ipv6 != "":
-            retval += " --ipv6" % self.ipv6
+            retval += " --ipv6=%s" % self.ipv6
 
         return retval
 
-- 
1.7.7.6


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