Skip to content

Commit

Permalink
Closes-Bug: #1640485 - Monitoring and Inventory data show fails (type…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
nitishkrishna committed Nov 10, 2016
1 parent 1e58085 commit 224e31f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
7 changes: 1 addition & 6 deletions src/client/smgr_inventory.py
Expand Up @@ -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
11 changes: 1 addition & 10 deletions src/client/smgr_monitoring.py
Expand Up @@ -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

Expand Down

0 comments on commit 224e31f

Please sign in to comment.