You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/11/07 14:37:27 UTC

svn commit: r1198734 - /libcloud/trunk/libcloud/common/cloudstack.py

Author: tomaz
Date: Mon Nov  7 13:37:27 2011
New Revision: 1198734

URL: http://svn.apache.org/viewvc?rev=1198734&view=rev
Log:
Increase a PollingConnection timeout in the CloudStack connection and fix the
context dictionary creation in the _async_request method. This patch has been
contributed by "gigimon" and is part of GITHUB-36.

Modified:
    libcloud/trunk/libcloud/common/cloudstack.py

Modified: libcloud/trunk/libcloud/common/cloudstack.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/common/cloudstack.py?rev=1198734&r1=1198733&r2=1198734&view=diff
==============================================================================
--- libcloud/trunk/libcloud/common/cloudstack.py (original)
+++ libcloud/trunk/libcloud/common/cloudstack.py Mon Nov  7 13:37:27 2011
@@ -29,6 +29,7 @@ class CloudStackConnection(ConnectionUse
     responseCls = CloudStackResponse
     poll_interval = 1
     request_method = '_sync_request'
+    timeout = 300
 
     ASYNC_PENDING = 0
     ASYNC_SUCCESS = 1
@@ -54,7 +55,8 @@ class CloudStackConnection(ConnectionUse
         return params, headers
 
     def _async_request(self, command, **kwargs):
-        context = {'command': command, 'kwargs': kwargs}
+        context = {'command': command}
+        context.update(kwargs)
         result = super(CloudStackConnection, self).async_request(action=None,
                                                                params=None,
                                                                data=None,