ndarshan has uploaded a new change for review.

Change subject: cli: Correct ordering of fields for "list bricks" with 
all-content as true(#990009)
......................................................................

cli: Correct ordering of fields for "list bricks" with all-content as 
true(#990009)

Change-Id: I974bde6937992b391f01accd7977b9dc0e5a5ef7
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=990009
Signed-off-by: ndarshan <[email protected]>
---
M src/ovirtcli/format/text.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/03/19203/1

diff --git a/src/ovirtcli/format/text.py b/src/ovirtcli/format/text.py
index f3e1f33..5c6e6c3 100644
--- a/src/ovirtcli/format/text.py
+++ b/src/ovirtcli/format/text.py
@@ -149,7 +149,9 @@
         stdout = context.terminal.stdout
         fields_exceptions = ['link', 'href', 'parentclass', '_Base__context']
         reduced_mode_fields = ['id', 'name', 'description']
-
+        # Ordering the fields for listing brick memory detail 
+        if isinstance(resource,params.GlusterMemoryPool):
+            sort_strategy = ['id','name', 
'hot_count','cold_count','padded_size','alloc_count','max_alloc','pool_misses','max_stdalloc','description']
         fields = self.sort_fields(self._get_fields(resource), sort_strategy)
         width0 = width
 


-- 
To view, visit http://gerrit.ovirt.org/19203
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I974bde6937992b391f01accd7977b9dc0e5a5ef7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: ndarshan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to