Reasons:
- currect code writes list of dict as they are,
without any formatting, actually _print_
method calls str() on each attribute,
this issue spoils human-readable form of the shell output.
Changes:
- updated "secgroup-list" (`rules` attributes was ignored);
- updated "secgroup-show" (`rules` attribute was ripped off);
- proposed new call "secgroup-list-rules <secgroup-id>";
Change-Id: Ic3f51b93af106c39de7eb3238f8bcffa3ea3cb95
Closes-Bug: #1300164
DocImpact: added new CLI command.
Reviewed: https:/ /review. openstack. org/85314 /git.openstack. org/cgit/ openstack/ python- troveclient/ commit/ ?id=b8fa51d9d04 f56a593498afd06 c4954d2ba99fb0
Committed: https:/
Submitter: Jenkins
Branch: master
commit b8fa51d9d04f56a 593498afd06c495 4d2ba99fb0
Author: Denis Makogon <email address hidden>
Date: Thu Jun 12 13:38:30 2014 +0300
Fix shell view for secgroup-* commands
Reasons:
- currect code writes list of dict as they are,
without any formatting, actually _print_
method calls str() on each attribute,
this issue spoils human-readable form of the shell output.
Changes: list-rules <secgroup-id>";
- updated "secgroup-list" (`rules` attributes was ignored);
- updated "secgroup-show" (`rules` attribute was ripped off);
- proposed new call "secgroup-
Change-Id: Ic3f51b93af106c 39de7eb3238f8bc ffa3ea3cb95
Closes-Bug: #1300164
DocImpact: added new CLI command.