-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
postgresql_server
: Update a PostgreSQL Replica to create_mode
= "Default"
#11467
postgresql_server
: Update a PostgreSQL Replica to create_mode
= "Default"
#11467
Conversation
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.
Aside from one comment this looks good 🚀 thanks @aristosvo !
if v, ok := d.GetOk("create_mode"); ok && v.(string) != "" { | ||
d.Set("create_mode", v) | ||
d.Set("creation_source_server_id", "") | ||
if *resp.ReplicationRole != "Master" && *resp.ReplicationRole != "None" { |
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'll need to nil check ReplicationRole to prevent panics
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.
Thanks, done!
Also most tests are failing with:
|
Oops, my mistake. I took the gamble as I had no credits left in my Azure Visual Studio Enterprise Subscription to role the whole suite. Edit: I'm not sure how to fix this, other than ignoring the diff between import and state for |
65f34f7
to
7087f01
Compare
7087f01
to
89f9f43
Compare
Hi @aristosvo , Thank you for raising this PR! Given I’m also subscribing the issue 11330, I’d like to share my 2 cents though I believe this fix is able to solve this issue.
As for follow ups, I would appreciate if the PR could be tuned per above suggest or I would be happy to submit a PR embodying the above if we can reach agreement here. I do not object to the current solution, either, if we agree on it, which could also solve the issue, as long as necessary in-code check and doc gets enriched. Lastly, I cannot tell for now whether there would be other problems before we running full regression testing. |
Hi @mybayern1974! Thanks for your comments, like it! Have thought about exposing I'll for sure add some extra docs! Thanks for the pointers in that regard.
With regard to your last bullet point, can you explain what you mean? |
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.
thanks @aristosvo - tests pass now so i'm going to approve and merge this so the fix makes it into this weeks release and any additional fixes can be done in a subsequent pr. I think it's reasonable to expect going to expect that diff there and while not ideal agree its minor
@mybayern1974 Feel free to create another PR to expose Can you also pick up the docs from there, as it is double the effort if I do it for current workings as well!? |
This has been released in version 2.57.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.57.0"
}
# ... other configuration ... |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #11330
Acceptance tests
TestAccPostgreSQLServer_updateReplicaToDefault