Should the config provided in Launchpad override `...
# ask-community
d
Should the config provided in Launchpad override
.configured
config? My resource:
Copy code
@resource(
    config_schema={
        "host": Field(StringSource, default_value="localhost"),
        "db": int,
        "password": Field(StringSource, is_required=False),
    }
)
def redis_client(init_context: InitResourceContext) -> Redis:
    ...
The Launchpad config:
Copy code
resources:
  redis_client:
    config:
      db: 1
I pass a "partially " configured (I realize it's actually fully configured) resource to my `Definitions`:
Copy code
"redis_client": redis_client.configured({"host": {"env": "REDIS_HOST"}, "db": 0}),
After this the
db
value is always 0, while I would expect the Launchpad config to override the value provided from the code.
👀 1
plus1 1