Skip to content

Commit a0d120f

Browse files
authored
update_sat_to_avoid_issues_after_Capsule_CDN_regis (#18534)
1 parent 4156562 commit a0d120f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

robottelo/hosts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,12 +1714,14 @@ def get_features(self):
17141714

17151715
def capsule_setup(self, sat_host=None, capsule_cert_opts=None, **installer_kwargs):
17161716
"""Prepare the host and run the capsule installer"""
1717-
self._satellite = sat_host or Satellite()
17181717

17191718
self.register_to_cdn()
17201719
self.setup_rhel_repos()
17211720
self.setup_capsule_repos()
17221721

1722+
# After capsule registration to cdn, it should be initialized with the Satellite.
1723+
self._satellite = sat_host or Satellite()
1724+
17231725
# Update system, firewall services and check capsule is already installed from template
17241726
# Setups firewall on Capsule
17251727
self.execute('dnf -y update', timeout=0)

0 commit comments

Comments
 (0)