Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
formatting ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingrismore committed Feb 22, 2024
1 parent 5bb300c commit fc35442
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions prefect_gcp/workers/cloud_run_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ def _populate_or_format_command(self):
command = self.job_body["template"]["template"]["containers"][0].get("command")

if command is None:
self.job_body["template"]["template"]["containers"][0]["command"] = (
shlex.split(self._base_flow_run_command())
)
self.job_body["template"]["template"]["containers"][0][
"command"
] = shlex.split(self._base_flow_run_command())
elif isinstance(command, str):
self.job_body["template"]["template"]["containers"][0]["command"] = (
shlex.split(command)
)
self.job_body["template"]["template"]["containers"][0][
"command"
] = shlex.split(command)

def _format_args_if_present(self):
"""
Expand All @@ -229,9 +229,9 @@ def _format_args_if_present(self):
args = self.job_body["template"]["template"]["containers"][0].get("args")

if args is not None and isinstance(args, str):
self.job_body["template"]["template"]["containers"][0]["args"] = (
shlex.split(args)
)
self.job_body["template"]["template"]["containers"][0][
"args"
] = shlex.split(args)

# noinspection PyMethodParameters
@validator("job_body")
Expand Down

0 comments on commit fc35442

Please sign in to comment.