From 224e31f0d3f64816000e0d55752561615968f254 Mon Sep 17 00:00:00 2001 From: nitishkrishna Date: Wed, 9 Nov 2016 10:36:25 -0800 Subject: [PATCH] Closes-Bug: #1640485 - Monitoring and Inventory data show fails (type missing) Had removed the type options as part of bug 1559975 to bring old client in line with cliff Need to remove the display options of type also Related-Bug: #1559975 Change-Id: I77756cb5a05343eaa12c4869b0185a7228da31a9 --- src/client/smgr_inventory.py | 7 +------ src/client/smgr_monitoring.py | 11 +---------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/client/smgr_inventory.py b/src/client/smgr_inventory.py index a99153f6..1c8d9930 100644 --- a/src/client/smgr_inventory.py +++ b/src/client/smgr_inventory.py @@ -74,11 +74,6 @@ def show_inv_details(self, args): else: rest_api_params['match_key'] = None rest_api_params['match_value'] = None - if args.type: - rest_api_params['select'] = args.type - if args.type == "status": - rest_api_params['object'] = 'InventoryConf' - else: - rest_api_params['select'] = None + rest_api_params['select'] = None return rest_api_params # end def show_inv_details diff --git a/src/client/smgr_monitoring.py b/src/client/smgr_monitoring.py index a65ea0e3..9b47d067 100644 --- a/src/client/smgr_monitoring.py +++ b/src/client/smgr_monitoring.py @@ -72,16 +72,7 @@ def show_mon_details(self, args): else: rest_api_params['match_key'] = None rest_api_params['match_value'] = None - if args.type: - rest_api_params['select'] = args.type - if args.type == "status": - rest_api_params['object'] = 'MonitorConf' - elif args.type == "sensor" and args.sensor: - rest_api_params['sub_type'] = args.sensor - elif args.type == "disk" and args.name: - rest_api_params['sub_type'] = args.name - else: - rest_api_params['select'] = None + rest_api_params['select'] = None return rest_api_params # end def show_mon_details