-
Notifications
You must be signed in to change notification settings - Fork 69
/
anaconda-rhsm-BZ2034601.patch
40 lines (37 loc) · 1.54 KB
/
anaconda-rhsm-BZ2034601.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- /usr/lib64/python3.6/site-packages/pyanaconda/modules/subscription/subscription.py 2021-12-20 13:03:13.033110377 +0000
+++ /usr/lib64/python3.6/site-packages/pyanaconda/modules/subscription/subscription.py.orig 2021-12-20 12:46:39.151815326 +0000
@@ -522,20 +522,23 @@
:returns: list of installation tasks
"""
- return [
- RestoreRHSMDefaultsTask(
- rhsm_config_proxy=self.rhsm_observer.get_proxy(RHSM_CONFIG)
- ),
- TransferSubscriptionTokensTask(
- sysroot=conf.target.system_root,
- transfer_subscription_tokens=self.subscription_attached
- ),
- ConnectToInsightsTask(
- sysroot=conf.target.system_root,
- subscription_attached=self.subscription_attached,
- connect_to_insights=self.connect_to_insights
- )
- ]
+ try:
+ return [
+ RestoreRHSMDefaultsTask(
+ rhsm_config_proxy=self.rhsm_observer.get_proxy(RHSM_CONFIG)
+ ),
+ TransferSubscriptionTokensTask(
+ sysroot=conf.target.system_root,
+ transfer_subscription_tokens=self.subscription_attached
+ ),
+ ConnectToInsightsTask(
+ sysroot=conf.target.system_root,
+ subscription_attached=self.subscription_attached,
+ connect_to_insights=self.connect_to_insights
+ )
+ ]
+ except:
+ return []
# RHSM DBus API access