From 90469357969d0550410a59e733661feece6b45de Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Wed, 16 Sep 2009 17:12:25 +0100
Subject: [PATCH] Confd client: make SendRequest args optional

By default "None" will be used as an args value

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/confd/client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/confd/client.py b/lib/confd/client.py
index 1243bf726..0ceb6c725 100644
--- a/lib/confd/client.py
+++ b/lib/confd/client.py
@@ -115,7 +115,7 @@ class ConfdClient:
       else:
         break
 
-  def SendRequest(self, request, callback, args, coverage=None):
+  def SendRequest(self, request, callback, args=None, coverage=None):
     """Send a confd request to some MCs
 
     @type request: L{objects.ConfdRequest}
@@ -123,7 +123,7 @@ class ConfdClient:
     @type callback: f(answer, req_type, req_query, salt, ip, port, args)
     @param callback: answer callback
     @type args: tuple
-    @param args: additional callback arguments
+    @keyword args: additional callback arguments
     @type coverage: integer
     @keyword coverage: number of remote nodes to contact
 
-- 
GitLab