-
Notifications
You must be signed in to change notification settings - Fork 1.8k
google_sql_user: Fixed import where host is an IPv4 CIDR #11523
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
google_sql_user: Fixed import where host is an IPv4 CIDR #11523
Conversation
Previously it was not possible to import CloudSQL users for MySQL with host set to an IPv4 CIDR. The parsing of ID failed if host was a CIDR since it expected it to be on the form {project}/{instance}/{host}/{name} and an error was returned if there where more than three slashes in the ID. With this fix if there are four slashes in the ID the third is considered part of the host argument.
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @zli82016, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
/gcbrun |
Tests analyticsTotal tests: 96 Click here to see the affected service packages
View the build log |
Because of an unexpected |
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.
LGTM. Thanks.
Previously it was not possible to import CloudSQL users for MySQL with
host
set to an IPv4 CIDR. The parsing ofID
failed ifhost
was a CIDR since it expected it to be on the form{project}/{instance}/{host}/{name}
and an error was returned if there where more than three slashes in theID
.With this fix if there are four slashes in the
ID
the third is considered part of thehost
argument.Acceptance test run:
Previously a import would fail with the message shown bellow. After the change this import succeeds with
host
set to10.0.0.0/24
.