-
Notifications
You must be signed in to change notification settings - Fork 163
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
fix service port error when protocol is any #884
Conversation
%s | ||
%s | ||
resource "huaweicloud_nat_dnat_rule" "dnat" { |
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.
please use empty lines to separate resources.
@@ -112,10 +138,8 @@ func testAccCheckNatDnatExists() resource.TestCheckFunc { | |||
} | |||
} | |||
|
|||
func testAccNatV2DnatRule_basic(suffix string) string { | |||
func testAccNatV2DnatRule_res(suffix string) string { |
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.
suggest to rename the function as testAccNatV2DnatRule_base
@@ -148,7 +172,13 @@ resource "huaweicloud_compute_instance" "instance_1" { | |||
foo = "bar" | |||
} | |||
} | |||
`, suffix, suffix, HW_AVAILABILITY_ZONE) |
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.
we also can put testAccNatPreCondition(suffix)
into this function.
when "lintignore" is declared with other comments, it does not work. so we put it after "time.Sleep" in the same line.
What this PR does / why we need it:
Nat dnat rule cannot create which request set with zero service port.
This issue because of isEmptyValue function return false when service port is zero(int) and program will abandom setting data.
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)fixes #880
Special notes for your reviewer:
Release note:
PR Checklist
Acceptance Steps Performed