Skip to content

Commit 771400a

Browse files
authored
Use safer HTTP 409 message check in enable_rhrepo (SatelliteQE#21916)
1 parent 07c5bfa commit 771400a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

robottelo/host_helpers/api_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def enable_rhrepo_and_fetchid(
133133
if (
134134
not strict
135135
and e.response.status_code == 409
136-
and 'repository is already enabled' in e.response.json()['displayMessage']
136+
and 'repository is already enabled' in e.response.json().get('message', '')
137137
):
138138
pass
139139
else:

0 commit comments

Comments
 (0)