Replace arg with get

Change-Id: Id5d2ea2313da182f1d8a2e310908db79f26144f1
This commit is contained in:
Sergey Nikitin 2019-04-21 01:25:18 +04:00
parent eed787f7ce
commit f6234f4aa0
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ def _log_module(module, primary_module, modified_since):
def log(repo, modified_since):
repo_module = repo['module']
modules = repo.get('aliases', [])
if repo['launchpad_name']:
if repo.get('launchpad_name'):
modules.append(repo['launchpad_name'])
for module in modules:

View File

@ -182,7 +182,7 @@ def _process_repo(repo, runtime_storage_inst, record_processor_inst):
_process_repo_vcs(repo, runtime_storage_inst, record_processor_inst)
if repo['launchpad_name'] or repo.get('aliases'):
if repo.get('launchpad_name') or repo.get('aliases'):
_process_repo_bugs(repo, runtime_storage_inst, record_processor_inst)
_process_repo_blueprints(repo, runtime_storage_inst,
record_processor_inst)