Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gunar
Copy link

@gunar gunar commented Jul 20, 2022

No description provided.

@github-actions
Copy link

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

@dixler
Copy link
Contributor

dixler commented Sep 14, 2022

/run-example-tests

@github-actions
Copy link

Please view the results of the PR Build Here

@dixler
Copy link
Contributor

dixler commented Sep 15, 2022

Hey, @gunar could you give me more context for why you want this change? 🙂

Comment on lines +22 to +23
user = pulumi_gcp.sql.User(
"user",
Copy link
Author

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,
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants