12 Commits

Author SHA1 Message Date
John L. Villalovos
2df670cf30 Remove unneeded 'utf-8' coding lines
This is basically a revert of commit:
  af741ec2236619880fa902d68aef4a6ae6cef534

It was decided that only files that need to have the line:
  # -*- coding: utf-8 -*-
Should have the line[1] as a general principle

This patch removes the 'utf-8' coding line from files that consist
entirely of ASCII characters.

[1]
http://eavesdrop.openstack.org/meetings/ironic/2015/ironic.2015-04-20-17.00.html

Partial-bug: #1325193
Change-Id: I88c1c37f7b580aa805eae9d4a1e66d33302a325f
2015-04-21 16:44:47 +00:00
Ghe Rivero
47236e2cf1 Bump hacking version
Current hacking version is incompatible with the one in the
global requirements. Match the hacking module version and made the
necessary changes to pass the tests.

Change-Id: Ie6b13a4ea112084d4c50dc27f97329dfad5777a1
2014-10-02 11:12:53 +00:00
Martin Geisler
af741ec223 Add UTF-8 coding lines to all Python files
While not strictly necessary for files containing only ASCII
characters, adding a line with "coding: utf-8" can guard against
future SyntaxError's in case someone inserts a Unicode literal.

This commit adds such lines to all .py files. The syntax used by this
commit works with Python (of course). It also works with Emacs, which
will recognize the special "-*-" marker and use the "coding" variable
to correctly decode the file, even in an environment where UTF-8 is
not the default file encoding.

Existing coding lines were normalized to match the new lines added.

Partial-bug: #1325193
Change-Id: I58bf93fea711fd25890356a397e594bd820c99e3
2014-05-31 13:22:44 +02:00
Lucas Alvares Gomes
29f806698f Add driver-list
The driver-list command returns a list of drivers supported by the
ironic conductors.

Change-Id: I24adbde087396fb5c01226ef7a2b602ff8732227
2013-11-12 09:03:00 +00: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
Devananda van der Veen
c5deb28ea1 Implement Node commands
Implement show, list, create, and delete for Nodes,
and add unit tests.

Change-Id: I77f95e9ad4d27d21682d202a5a410ab7f974a78d
2013-09-25 19:16:20 -07:00
Lucas Alvares Gomes
c6b9ccf5ac Add port-create and port-delete
Change-Id: I0c91b2142e5b73d0acf7c6741dfe10ba13919306
2013-09-25 19:16:15 -07:00
Lucas Alvares Gomes
2547342ab1 Add chassis-create and chassis-delete
Change-Id: I404c513fc39a18967d96f67fc1a7cc68329adb75
2013-09-25 17:55:40 -07:00
Lucas Alvares Gomes
92903077b2 Add port-show and port-list
Change-Id: I36fa0f5d4322603a90fd8ebe8ef833b60a6f73e5
2013-09-25 12:41:07 +01:00
Lucas Alvares Gomes
080ad7a56f Implement chassis-list + more tests
Added chassis-list command for v1 + more tests.

Change-Id: If86e8600d22d00b6100c17922e9b8bac08029d19
2013-09-25 12:39:04 +01:00
Lucas Alvares Gomes
fa1253eb92 Implement chassis-show
Added chassis-show command for v1.

Partially implements: bp simple-crud

Change-Id: If04b5a76bd385da3c01682ef6137d710b2143641
2013-09-19 11:48:35 -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