Skip to content

Commit 8df9993

Browse files
gmarcianienrico-usai
authored andcommitted
[Testing] Fix suppression of SchedulerValidator when using scheduler plugin.
Signed-off-by: Giacomo Marciani <[email protected]>
1 parent ee4033b commit 8df9993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration-tests/clusters_factory.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def update(self, config_file, raise_on_error=True, log_error=True, **kwargs):
8888
command.extend([f"--{kebab_case(k)}", str(val)])
8989
# TODO Remove the validator suppression below once the plugin scheduler is officially supported
9090
if self.config["Scheduling"]["Scheduler"] == "plugin":
91-
command.append("--suppress-validators type:SchedulerValidator")
91+
command.extend(["--suppress-validators", "type:SchedulerValidator"])
9292
result = run_pcluster_command(command, raise_on_error=raise_on_error, log_error=log_error)
9393
logging.info("update-cluster response: %s", result.stdout)
9494
response = json.loads(result.stdout)
@@ -438,7 +438,7 @@ def create_cluster(self, cluster, log_error=True, raise_on_error=True, **kwargs)
438438
command.extend([f"--{kebab_case(k)}", str(val)])
439439
# TODO Remove the validator suppression below once the plugin scheduler is officially supported
440440
if cluster.config["Scheduling"]["Scheduler"] == "plugin":
441-
command.append("--suppress-validators type:SchedulerValidator")
441+
command.extend(["--suppress-validators", "type:SchedulerValidator"])
442442
try:
443443
result = run_pcluster_command(command, timeout=7200, raise_on_error=raise_on_error, log_error=log_error)
444444

0 commit comments

Comments
 (0)