Am I putting the default label flag in the wrong p...
# ask-community
j
Am I putting the default label flag in the wrong place? I am getting this error:
Copy code
TypeError: __init__() got an unexpected keyword argument 'add_default_labels'
My configuration looks like this:
Copy code
# Configure a custom image
f.run_config = DockerRun(
    labels=["grls"],
    add_default_labels=False,
)
1
m
I think that actually needs to be set as an environment variable https://docs-v1.prefect.io/core/concepts/configuration.html#environment-variables so something like this
Copy code
f.run_config = DockerRun(
    labels=["grls"],
    env={"add_default_labels": False},
)
j
@Mason Menges Worked! Thanks!!
🙌 1