Fixed #34 Bug when admin adding user

This commit is contained in:
gholt 2012-06-15 02:13:08 +00:00
parent 6b5aa8fc33
commit c94d85d2e7

View File

@ -72,6 +72,10 @@ if __name__ == '__main__':
'X-Auth-Admin-Key': options.admin_key}
if options.suffix:
headers['X-Account-Suffix'] = options.suffix
conn = http_connect(parsed.hostname, parsed.port, 'GET', path, headers,
ssl=(parsed.scheme == 'https'))
resp = conn.getresponse()
if resp.status // 100 != 2:
conn = http_connect(parsed.hostname, parsed.port, 'PUT', path, headers,
ssl=(parsed.scheme == 'https'))
resp = conn.getresponse()