Skip to content

Commit

Permalink
fix deploy content modules when library name is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Feb 5, 2025
1 parent f01d665 commit 314e937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/module_utils/_module_deploy_content_library_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def library_item_id(self):

if self.params['library_id']:
library_id = self.params['library_id']
else:
elif self.params['library_name']:
library_ids = self.rest_base.get_content_library_ids(
name=self.params['library_name'],
fail_on_missing=True
Expand All @@ -80,6 +80,8 @@ def library_item_id(self):
self.params['library_name']
))
library_id = library_ids[0]
else:
library_id = None

Check warning on line 84 in plugins/module_utils/_module_deploy_content_library_base.py

View check run for this annotation

Codecov / codecov/patch

plugins/module_utils/_module_deploy_content_library_base.py#L84

Added line #L84 was not covered by tests

item_ids = self.rest_base.get_library_item_ids(
name=self.params['library_item_name'],
Expand Down

0 comments on commit 314e937

Please sign in to comment.