Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Add support for SLES importers with query_auth_token configured
Browse files Browse the repository at this point in the history
closes #6927
https://pulp.plan.io/issues/6927

(cherry picked from commit b05d5a0)
  • Loading branch information
goosemania committed Jul 24, 2020
1 parent 7bdab77 commit e8b1de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/6927.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for migrating SLES12+ repos which require auth token.
3 changes: 3 additions & 0 deletions pulp_2to3_migration/app/plugin/rpm/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def migrate_to_pulp3(cls, pulp2importer):
"""
pulp2_config = pulp2importer.pulp2_config
base_config, name = cls.parse_base_config(pulp2importer, pulp2_config)
sles_auth_token = pulp2_config.get('query_auth_token')
if sles_auth_token:
base_config['sles_auth_token'] = sles_auth_token
return RpmRemote.objects.update_or_create(name=name, defaults=base_config)


Expand Down

0 comments on commit e8b1de7

Please sign in to comment.