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

Simplify variable names #5

Merged
merged 3 commits into from
Mar 17, 2022
Merged

Simplify variable names #5

merged 3 commits into from
Mar 17, 2022

Conversation

tlindsay42
Copy link
Member

No description provided.

@tlindsay42 tlindsay42 self-assigned this Mar 17, 2022
@tlindsay42
Copy link
Member Author

Copy link
Contributor

@drewmullen drewmullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good - couple of thoughts

README.md Show resolved Hide resolved
data.tf Outdated
@@ -1,12 +1,12 @@
data "vsphere_tag_category" "category" {
count = !var.create_vsphere_tag_category && length(var.vsphere_tag_category_name) > 0 ? 1 : 0
count = !var.create_tag_category && length(var.tag_category_name) > 0 ? 1 : 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readability can be improved if you encapsulate the scope of conditions with ()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done deal. Wrapped all conditions with parentheses

GetEnvOrExit(vsphere_user)
GetEnvOrExit(vsphere_password)
GetEnvOrExit(vsphere_server)
GetEnvsOrExit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to move invalid tests to their own file?

feel free to push back on this idea

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Started with this route but pivoted to consolidate as I needed to reuse the constants across all tests, so I thought it made more sense this way

@tlindsay42 tlindsay42 merged commit 3b8244b into main Mar 17, 2022
@tlindsay42 tlindsay42 deleted the vars branch March 17, 2022 17:09
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.

None yet

2 participants