Skip to content

Commit

Permalink
Fix condition for verify_disks_lso_attached
Browse files Browse the repository at this point in the history
This PR: red-hat-storage#10120

Broke original condition:
if config.ENV_DATA.get("platform") != constants.BAREMETAL_PLATFORM:

and changed to:
if config.ENV_DATA.get("platform") in [
            constants.BAREMETAL_PLATFORM,
            constants.HCI_BAREMETAL,
        ]:

There should be `not in`. Which is fixed in this commit.

Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh authored and openshift-cherrypick-robot committed Aug 2, 2024
1 parent 4e6a974 commit 37336e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocs_ci/ocs/ui/base_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def check_element_text(self, expected_text, element="*", take_screenshot=False):
Args:
expected_text (string): The expected text.
element (str): element (default: *)
element (str): element
take_screenshot (bool): if screenshot should be taken
return:
Expand Down
2 changes: 1 addition & 1 deletion ocs_ci/ocs/ui/deployment_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def install_lso_cluster(self):
self.do_click(
locator=self.dep_loc["all_nodes_create_sc"], enable_screenshot=True
)
if config.ENV_DATA.get("platform") in [
if config.ENV_DATA.get("platform") not in [
constants.BAREMETAL_PLATFORM,
constants.HCI_BAREMETAL,
]:
Expand Down

0 comments on commit 37336e3

Please sign in to comment.