Skip to content

Commit 6aee812

Browse files
authored
Merge pull request #693 from furlongm/module-creation
get_or_create_module only returns module
2 parents 36cefb1 + 94fcb04 commit 6aee812

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def get_or_create_module(name, stream, version, context, arch, repo):
2525
""" Get or create a module object
26-
Returns the module and a boolean for created
26+
Returns the module
2727
"""
2828
created = False
2929
m_arch, c = PackageArchitecture.objects.get_or_create(name=arch)
@@ -46,7 +46,7 @@ def get_or_create_module(name, stream, version, context, arch, repo):
4646
arch=m_arch,
4747
repo=repo,
4848
)
49-
return module, created
49+
return module
5050

5151

5252
def get_matching_modules(name, stream, version, context, arch):

repos/repo_types/yum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def extract_module_metadata(data, url, repo):
9191
packages.add(package)
9292

9393
from modules.utils import get_or_create_module
94-
module, created = get_or_create_module(m_name, m_stream, m_version, m_context, arch, repo)
94+
module = get_or_create_module(m_name, m_stream, m_version, m_context, arch, repo)
9595

9696
package_ids = []
9797
for package in packages:

0 commit comments

Comments
 (0)