Opened 5 years ago

Closed 5 years ago

#15635 closed enhancement (worksforme)

Support multiple parameters for get_info()

Reported by: sambuddhabasu Owned by:
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Keywords: controller
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Presently get_info() method takes only one parameter. If the user wants multiple GETINFO queries, they have to call the get_info() method multiple times like,
get_info('traffic/read')
get_info('traffic/written')
It will be better if the user can just call a get_info_map() method with multiple parameters which will return a dictionary/mapping of all the results. This can be something like,
ret_val = get_info_map('traffic/read', 'traffic/written')
and then ret_val['traffic/read'] and ret_val['traffic/written'] can be used to retrieve the expected values

Child Tickets

Change History (2)

comment:1 Changed 5 years ago by sambuddhabasu

I am currently working on fixing this issue.

comment:2 Changed 5 years ago by atagar

Resolution: worksforme
Status: newclosed

Oops! As sambuddhabasu spotted we already support this (reading fail on my part).

Note: See TracTickets for help on using tickets.