Hello, I am currently using this to get an environ...
# ask-community
q
Hello, I am currently using this to get an environment variable
Copy code
{
  "env": "ID_NUMBER"
}
However, it is returned as a string. Is there a way to read this as an integer? My env file has this
Copy code
export ID_NUMBER=5
a
are you using the
IntSource
config type or
StringSource
or something hand rolled?
q
None of those. I think whatever is the default is what's being used
a
i am not sure what you are talking about then - either way you can parse the string in to an int using
int()
q
Okay so I am using this in a
dbt_cloud_resource
Copy code
dbt_cloud_resource.configured("account_id": {'env': 'ACCOUNT_ID'})
How do I modify this to pull in the account id as a string?
a
ah ok thats useful context - the schema for that is currently just
int
but should be changed to
IntSource
to support the pattern you are trying https://github.com/dagster-io/dagster/blame/master/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/resources.py#L479
you interested in submitting a PR?
q
Sure
🎉 1