-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refact: resolve ambigous variable name #1253
base: master
Are you sure you want to change the base?
Conversation
PR is now waiting for a maintainer to run the acceptance tests. Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR |
/run-example-tests |
Please view the results of the PR Build Here |
Hey, @gunar could you give me more context for why you want this change? 🙂 |
user = pulumi_gcp.sql.User( | ||
"user", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a single user so no point in being plural.y
name=config.require("db-name"), | ||
instance=cloud_sql_instance.name, | ||
password=config.require_secret("db-password"), | ||
) | ||
|
||
sql_instance_url = Output.concat( | ||
"postgres://", | ||
config.require("db-name"), | ||
user.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though config.require("db-name") === user.name
, it'd be best to reference user.name
instead so the chain of dependencies is clear to both the reader and to the Pulumi engine.
No description provided.