From 50e8deee08a77eab9ee085a686e25972a36d2d57 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Mon, 29 Dec 2014 10:11:03 +0200 Subject: [PATCH] Add service id to information printed by console client Currently console client doesn't provide service id. Addition of this output gives user an opportunity to uniquely identify back ends with same names that are running on same host. Add service id to fields printed by service-list command (method do_service_list()) Required for bp manila/manage-shares Change-Id: I970aa97fa6856348fce2bc0b7f0be108b1ee6034 --- manilaclient/v1/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manilaclient/v1/shell.py b/manilaclient/v1/shell.py index 046a8e5ef..517bd9b40 100644 --- a/manilaclient/v1/shell.py +++ b/manilaclient/v1/shell.py @@ -1560,7 +1560,7 @@ def do_service_list(cs, args): 'zone': args.zone, 'state': args.state, } - fields = ["Binary", "Host", "Zone", "Status", "State", "Updated_at"] + fields = ["Id", "Binary", "Host", "Zone", "Status", "State", "Updated_at"] services = cs.services.list(search_opts=search_opts) utils.print_list(services, fields=fields)