6 Commits

Author SHA1 Message Date
Ghe Rivero
8fefacfbae Comply with new hacking requirements
Fix some print statements and an import only module issue.

Change-Id: I0bb9cecb5ab03f35e696ee57c3ded05d7fd1725b
2013-11-11 11:44:46 +01:00
Kui Shi
acbe15cbd1 Import urlutils module from oslo
Import urlutils to resovle the urlparse module compatability issue.

Partial implement: blueprint py33-support

Change-Id: Ibc4860e979a2f25bebfbdc3a279ddc837b81b5a5
2013-10-17 17:21:06 +08:00
Kui Shi
b63721f2b3 Import httplib from six.moves
Import httplib from six.moves
Use six.StringIO to replace StringIO

Partial implement: blueprint py33-support

Change-Id: Ic20ce1139d1b296c7cbb666a200b2d9260764636
2013-10-17 17:21:02 +08:00
Lucas Alvares Gomes
489daf6710 Improve error feedback
When an error occur instead of just return the HTTP response code the
client will now try to extract the error message that contains the reason
of the problem and show it to the user in a user-friendly way (no codes
at all), the intention of this patch is to improve the usability of the
ironic client. Things like HTTP response codes can still be viewed when
used with the debug mode enabled ( -d ).

Change-Id: Ieca021cc0e0eabe91c13335c3062ef9622da3004
2013-10-02 16:41:53 +01:00
Devananda van der Veen
2d7add0c21 Stop HTTPClient from calling self.auth_token()
self.auth_token is a string, not a method, and so it shouldn't be
invoked.

Change-Id: Iad5da176fd5c7ea05f16a29c83eb718fc900607c
2013-09-25 17:57:09 -07:00
Lucas Alvares Gomes
ba073c0707 Basic project structure
Mostly taken from other OpenStack client projects and adapted for Ironic.

Change-Id: I1ef9613b9e24bbb6caac9657dc1da3add899478e
2013-09-19 00:21:14 +01:00