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

Remove unused variable #10

Merged
merged 3 commits into from
Jan 27, 2018
Merged

Remove unused variable #10

merged 3 commits into from
Jan 27, 2018

Conversation

dtzar
Copy link
Contributor

@dtzar dtzar commented Jan 19, 2018

We don't use this variable since we use the "${length(var.remote_port)}" on line 37 for count.
Also fixes a problem with the public example in the readme.

@dtzar dtzar requested review from dcaro and WodansSon January 19, 2018 19:40
@horsey
Copy link
Contributor

horsey commented Jan 25, 2018

@dtzar I think the variable "${length(var.remote_port)}" is the one that needs to go and not "${var.number_of_endpoints}". "${length(var.remote_port)}" has no relation to the number of NAT rules that should be created.

@dtzar
Copy link
Contributor Author

dtzar commented Jan 25, 2018

@horsey - no this is the best approach because then people can add whatever ports they want and it will create however many rules based on the var.remote_port map length.

Copy link
Contributor

@dcaro dcaro left a comment

Choose a reason for hiding this comment

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

LGTM

@dcaro dcaro merged commit 9219dbf into master Jan 27, 2018
@dcaro dcaro deleted the unusedvar branch January 27, 2018 00:37
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.

3 participants