<@ULVA73B9P> when deploying an flow with a yaml fi...
# ask-marvin
a
@Marvin when deploying an flow with a yaml file, i have the deployments, in the parameters how do i set a boolean value?
Copy code
deployments:
  - name: my-pipe
    description: description here
    entrypoint: folder/code.py:func_name
    parameters: { "boolean_value": True }
    work_pool:
      name: serverless-push-work-pool
m
When deploying a flow with a YAML file and setting a boolean parameter, you should use lowercase for the boolean value (
true
or
false
) as YAML is case-sensitive. Here's an updated example:
Copy code
yaml
deployments:
  - name: my-pipe
    description: description here
    entrypoint: folder/code.py:func_name
    parameters:
      boolean_value: true
    work_pool:
      name: serverless-push-work-pool
This will correctly set the
boolean_value
parameter to
true
. You can find more details about deployments in the Prefect documentation here.
a
nope : pydantic.errors.ConfigError: unable to infer type for attribute