Skip to content

Commit

Permalink
Changed argument name in get_base_listing module
Browse files Browse the repository at this point in the history
The argument name was pkg_mgr but any file could indicate the
methods used to get the package information. So changed it to
'key' to be more generic and not give the impression we are only
looking for package managers

The tern executable does not work

Signed-off-by: Nisha K <[email protected]>
  • Loading branch information
Nisha K committed Jul 2, 2018
1 parent e4655b6 commit e89e125
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions command_lib/command_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def __missing__(self, key):
return '{' + key + '}'


def get_base_listing(pkg_mgr):
'''Given the package manager name, return the dictionary in base.yml'''
def get_base_listing(key):
'''Given the key listing in base.yml, return the dictionary'''
listing = {}
if pkg_mgr in command_lib['base'].keys():
listing = command_lib['base'][pkg_mgr]
if key in command_lib['base'].keys():
listing = command_lib['base'][key]
else:
logger.warning(errors.no_listing_for_base_key.format(
listing_key=pkg_mgr))
listing_key=key))
return listing


Expand Down

0 comments on commit e89e125

Please sign in to comment.