We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036a711 commit df70b14Copy full SHA for df70b14
1 file changed
pytest_fixtures/core/broker.py
@@ -5,6 +5,7 @@
5
import pytest
6
7
from robottelo.config import settings
8
+from robottelo.enums import NetworkType
9
from robottelo.exceptions import ContentHostError
10
from robottelo.hosts import Satellite, lru_sat_ready_rhel
11
@@ -112,4 +113,9 @@ def module_discovery_sat(
112
113
discovery_auto.value = 'true'
114
discovery_auto.update(['value'])
115
116
+ # Clear stale DHCP leases from provisioning setup workflow
117
+ if sat.network_type == NetworkType.IPV4:
118
+ assert sat.execute('cat /dev/null > /var/lib/dhcpd/dhcpd.leases').status == 0
119
+ assert sat.execute('systemctl restart dhcpd').status == 0
120
+
121
return Box(sat=sat, iso=disc_img_name)
0 commit comments