Skip to content

Commit

Permalink
Fix subcmd string check (#9309)
Browse files Browse the repository at this point in the history
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
  • Loading branch information
shylesh authored Feb 7, 2024
1 parent 4cc362a commit ae2b6f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocs_ci/utility/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ def exec_cmd(
if len(subcmd) > 1:
subcmd = "_".join(subcmd)
log.info(f"searching for plugin: {subcmd}")
if not isinstance(subcmd, str) and isinstance(subcmd, list):
subcmd = str(subcmd[0])

for l in cp.stdout.decode().splitlines():
if subcmd in l:
Expand Down

0 comments on commit ae2b6f1

Please sign in to comment.