Skip to content

Commit

Permalink
Fix updating role dependencies when empty (#1545)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Crosby <[email protected]>
  • Loading branch information
awcrosby authored Feb 12, 2019
1 parent 896207a commit 1a94867
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions galaxy/worker/importers/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,9 @@ def _add_dependencies(self, role, dependencies):
if role.role_type not in (constants.RoleType.CONTAINER,
constants.RoleType.ANSIBLE):
return
if not dependencies:
return
self.log.info('Adding role dependencies')
new_deps = []
for dep in dependencies:
for dep in dependencies or []:
try:
dep_role = models.Content.objects.get(
namespace__name=dep.namespace, name=dep.name)
Expand Down

0 comments on commit 1a94867

Please sign in to comment.