Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
createmockconfig: Fix pylint warning
Browse files Browse the repository at this point in the history
Signed-off-by: Euan Harris <euan.harris@citrix.com>
  • Loading branch information
euanh committed Apr 20, 2017
1 parent 3012d66 commit d45df4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planex/cmd/createmockconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def update_mock_repos(config, yum_repos):
for repo in yum_repos:
config.add_section(repo.id)
config.set(repo.id, 'name', repo.name)
if len(repo.baseurl):
if repo.baseurl:
config.set(repo.id, 'baseurl', ' '.join(repo.baseurl))
else:
config.set(repo.id, 'mirrorlist', repo.mirrorlist)
Expand Down

0 comments on commit d45df4b

Please sign in to comment.