tahoe_fuse: system test: webapi connection: bug fix and small log output change.

This commit is contained in:
nejucomo 2008-01-20 20:10:31 -07:00
parent b4b410eccf
commit ba4458d502

View File

@ -212,11 +212,11 @@ class SystemTest (object):
conn = httplib.HTTPConnection('127.0.0.1', client.port)
conn.request('PUT', '/uri?t=mkdir')
resp = conn.getresponse()
if resp.status == '200':
if resp.status == 200:
return resp.read().strip()
else:
# FIXME: This output can be excessive!
print 'HTTP %s reponse while attempting to make node.' % resp.status
print 'HTTP %r reponse while attempting to make node.' % (resp.status,)
print resp.read()
return False # make another polling attempt...