Commit fc32b0d
committed
Improve "server list" command to have the same output as "nova list".
"nova list" will also output "Task State" and "Power State" by default.
This patch improves "server list" command to have the same columns, but
not by default. These two columns will be output if --long is added.
The power state is an int, so also adds a formatter helper function
to translate it to human readable string, just as "Networks" does.
Change-Id: I0530a910bec03835839a5ba7687c66d5643338f31 parent 6e1ad73 commit fc32b0d
1 file changed
Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
59 | 82 | | |
60 | 83 | | |
61 | 84 | | |
| |||
762 | 785 | | |
763 | 786 | | |
764 | 787 | | |
| 788 | + | |
| 789 | + | |
765 | 790 | | |
766 | 791 | | |
767 | 792 | | |
| |||
771 | 796 | | |
772 | 797 | | |
773 | 798 | | |
| 799 | + | |
| 800 | + | |
774 | 801 | | |
775 | 802 | | |
776 | 803 | | |
777 | 804 | | |
778 | 805 | | |
779 | 806 | | |
| 807 | + | |
| 808 | + | |
780 | 809 | | |
781 | 810 | | |
782 | 811 | | |
783 | 812 | | |
784 | | - | |
785 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
786 | 825 | | |
787 | 826 | | |
788 | 827 | | |
789 | 828 | | |
790 | 829 | | |
791 | 830 | | |
792 | 831 | | |
| 832 | + | |
| 833 | + | |
793 | 834 | | |
794 | 835 | | |
795 | 836 | | |
| |||
0 commit comments