Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
Signed-off-by: oviner <oviner@redhat.com>
  • Loading branch information
OdedViner committed Sep 28, 2023
1 parent b5d7b37 commit 2373fff
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions ocs_ci/ocs/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ def __init__(

self.thread_exec = concurrent.futures.ThreadPoolExecutor(max_workers=1)

# def setup(self, **setup_conf):
# """
# Perform work_load_mod.setup() to setup the workload.
# Every workload module should implement setup() method so that
# respective <workload_module>.setup() function can be called from here
#
# Args:
# setup_conf (dict): Work load setup configuration, varies from
# workload to workload. Refer constants.TEMPLATE_WORKLOAD_DIR
# for various available workloads
#
# Returns:
# bool: True if setup is success else False
# """
# if self.pod:
# setup_conf["pod"] = self.pod
# return self.work_load_mod.setup(**setup_conf)
def setup(self, **setup_conf):
"""
Perform work_load_mod.setup() to setup the workload.
Every workload module should implement setup() method so that
respective <workload_module>.setup() function can be called from here
Args:
setup_conf (dict): Work load setup configuration, varies from
workload to workload. Refer constants.TEMPLATE_WORKLOAD_DIR
for various available workloads
Returns:
bool: True if setup is success else False
"""
if self.pod:
setup_conf["pod"] = self.pod
return self.work_load_mod.setup(**setup_conf)

def run(self, **conf):
"""
Expand Down

0 comments on commit 2373fff

Please sign in to comment.