From: Ondrej Lichtner <olichtne(a)redhat.com>
For some reason the DefaultRPCPort constant was defined in two places.
This commit fixes that and removes the constant definition from the
NetTestSlave module. Instead the constant is imported from the
Common.Config module.
---
lnst/Slave/NetTestSlave.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lnst/Slave/NetTestSlave.py b/lnst/Slave/NetTestSlave.py
index 729878b..99da97b 100644
--- a/lnst/Slave/NetTestSlave.py
+++ b/lnst/Slave/NetTestSlave.py
@@ -35,11 +35,10 @@ from lnst.Common.Utils import check_process_running
from lnst.Common.ConnectionHandler import recv_data, send_data
from lnst.Common.ConnectionHandler import ConnectionHandler
from lnst.Common.Config import lnst_config
+from lnst.Common.Config import DefaultRPCPort
from lnst.Common.NetTestCommand import NetTestCommandConfig
from lnst.Slave.InterfaceManager import InterfaceManager
-DefaultRPCPort = 9999
-
class SlaveMethods:
'''
Exported xmlrpc methods
--
1.8.5.3
Show replies by thread