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/03/18 01:25:18 UTC
svn commit: r1082770 -
/incubator/libcloud/trunk/libcloud/compute/drivers/elastichosts.py
Author: tomaz
Date: Fri Mar 18 00:25:18 2011
New Revision: 1082770
URL: http://svn.apache.org/viewvc?rev=1082770&view=rev
Log:
Use constant.
Modified:
incubator/libcloud/trunk/libcloud/compute/drivers/elastichosts.py
Modified: incubator/libcloud/trunk/libcloud/compute/drivers/elastichosts.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/compute/drivers/elastichosts.py?rev=1082770&r1=1082769&r2=1082770&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/compute/drivers/elastichosts.py (original)
+++ incubator/libcloud/trunk/libcloud/compute/drivers/elastichosts.py Fri Mar 18 00:25:18 2011
@@ -18,6 +18,7 @@ ElasticHosts Driver
import re
import time
import base64
+import httplib
try:
import json
@@ -437,7 +438,7 @@ class ElasticHostsBaseNodeDriver(NodeDri
method='POST'
)
- return (response.status == 200 and response.body != '')
+ return (response.status == httplib.OK and response.body != '')
def deploy_node(self, **kwargs):
"""