-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-attach subscription when there is only one (#385)
Also, previous to this change, if a pool had been specified on the convert2rhel command line and attach_subscription() was called more than once, the subscription-manager command line would be constructed incorrectly. It would have "--pool" added to the front of the pool id each time attach-subscription was called leading to something like this: "subscription-manager attach --pool --pool POOLID". To fix this, we now treat tool_opts.pool as read-only and do not modify it on each call to attach_subscription(). This goes along with our overall move to treat global singletons as read-only whenever possible.
- Loading branch information
1 parent
e5606a9
commit 154ac63
Showing
3 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters