client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit dd9ffb1e6bc62bb1c8bb80da110ebeeedb722986
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Wed Nov 25 14:35:44 2009 +0100
541262 - fix networkRetries logic
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
index b54be87..1a810d9 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
@@ -191,7 +191,10 @@ def doCall(method, *args, **kwargs):
ret = None
attempt_count = 1
- attempts = cfg["networkRetries"] or 5
+ if cfg["networkRetries"]:
+ attempts = cfg["networkRetries"] or 5
+ else:
+ attempts = 0
while 1:
failure = 0
Show replies by date