Now for wrap input it will take only postive integers as an input and
if any negative numbers are give it will give output as "Wrap argument
should be a non-negative integer".
Change-Id: I39a175e5a30af9128514fef814c6d62d2c283e84
Closes-Bug: #1628797
The option --json used the attribute "_info" to print the JSON
response from Ironic API. Some objects do not have this attribute,
which results in an error. This patch stops relying on "_info" and
uses the fields names to build the JSON array.
Change-Id: I6c0ff73a38cda21e147b3216d0c0d0539cc867bb
Closes-Bug: #1558688
Indent the output of commands when using the --json option. This patch
is a follow-up patch for https://review.openstack.org/#/c/283519/
Change-Id: Ieb3ffd8c362b37ad9b78bd3ecd98499b26c03bd0
Add a json option to list and show commands to return the JSON
response body from the Ironic API without formatting it.
Change-Id: Ic21c8ce1cc211816e309b4a00b6e89a0a8bf6a9d
Closes-Bug: #1436440
According to the latest agreement in Oslo team, apiclient and
clituils will be removed from Oslo incubator. We should keep
the local copy by ourselfs:
1. rename openstack/common/apiclient to common/apiclient
2. Because Ironic only use base.py and exception.py, so delete others.
3. rename openstack/common/cliutils.py to common/clituils.py
4. Delete openstack/common/_i18n becuase we have common/i18n.py
5. Delete openstack folder because it is empty
6. Add related unit tests and add oslotest to test-requirements.
Change-Id: I9eecd0457e86e82e65db1d0bc9a4c5c0ed4bbf74