Skip to content

Commit

Permalink
setup_org_for_a_rh_repo fix (#13970)
Browse files Browse the repository at this point in the history
* setup_org_for_a_rh_repo fix

* Use helper
  • Loading branch information
lhellebr authored Feb 14, 2024
1 parent ab2a9dc commit 0e1e489
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions robottelo/host_helpers/cli_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,7 @@ def _setup_org_for_a_rh_repo(self, options=None):
# If manifest does not exist, clone and upload it
if len(self._satellite.cli.Subscription.exists({'organization-id': org_id})) == 0:
with clone() as manifest:
self._satellite.put(manifest.path, manifest.name)
try:
self._satellite.cli.Subscription.upload(
{'file': manifest.name, 'organization-id': org_id}
)
except CLIReturnCodeError as err:
raise CLIFactoryError(f'Failed to upload manifest\n{err.msg}') from err
self._satellite.upload_manifest(org_id, manifest.content)
# Enable repo from Repository Set
try:
self._satellite.cli.RepositorySet.enable(
Expand Down

0 comments on commit 0e1e489

Please sign in to comment.