9 Commits

Author SHA1 Message Date
Ghe Rivero
1b1dd31067 Reorder imports
As per hacking and PEP8, grouping third party libraries in
their own group.

http://www.python.org/dev/peps/pep-0008/#imports

Change-Id: I7a574d311b5171def0c6930162a46ce4c215097d
2013-11-11 18:12:58 +01:00
Jenkins
3446a9734d Merge "Transform print statement to print function" 2013-11-11 09:20:09 +00:00
Ghe Rivero
a6fd095e95 Transform print statement to print function
Needed to comply with new hacking>=0.8.0,<0.9 requirement.

Partial implement: blueprint py33-support

Change-Id: I478a47c814462a4f7edb0f389a00666bc901af77
2013-11-06 10:30:39 +01:00
Lucas Alvares Gomes
ce93dd5ce1 Add node-set-power-state to cli
Add the node-set-power-state command to allow changing the power state
of a node using the cli.

Change-Id: I176bfe54db84e1c5677f7955b9cf247f0d09be4e
2013-11-01 17:42:50 +00:00
Lucas Alvares Gomes
958652fcb4 Add short command line option
Add short command line option alternative for resources creation. This
patch also sacrifices the short option used for debug (-d) in place of
improve the user experience for the real user, developers who needs to
enable debug can still use the long form alternative (--debug).

Change-Id: I1588dc453e1c432fd372e07b87978a77faddcd1c
2013-10-03 11:45:48 +01:00
Lucas Alvares Gomes
913ffc3161 Improve help strings
Improve help strings, remove the upper and lower case mix, inform the
user that some fields are required, remove the period at the end of the
strings making them more uniform.

Change-Id: If5531e0f3161b74f29a80d61792746d561660f49
2013-10-03 11:03:54 +01: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
Lucas Alvares Gomes
3b901b0134 Split v1/shell.py into different files
Splitting v1/shell.py into one file per resource makes the code more
organized and in the long run helps to improve code readability.

Change-Id: Ia57019548158ffe33a1eca444405107caa327936
2013-09-26 11:24:26 +01: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