-
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
azurerm_site_recovery_replication_recovery_plan
: fix update for boot_recovery_group
,failover_recovery_group
and shutdown_recovery_group
#22687
azurerm_site_recovery_replication_recovery_plan
: fix update for boot_recovery_group
,failover_recovery_group
and shutdown_recovery_group
#22687
Conversation
Signed-off-by: ziyeqf <[email protected]>
@@ -517,14 +517,26 @@ func (r SiteRecoveryReplicationRecoveryPlanResource) Update() sdk.ResourceFunc { | |||
return fmt.Errorf("parse Site reocvery replication plan id: %+v", err) | |||
} | |||
|
|||
recoveryPlanGroup, err := expandRecoveryGroup(model.RecoveryGroup) | |||
if err != nil { |
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.
Move this below the new code and remove the duplicate extra error return code in the if-else structure.
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.
code updated, thanks
Signed-off-by: ziyeqf <[email protected]>
Signed-off-by: ziyeqf <[email protected]>
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.
HI @ziyeqf, just left one minor comment here but once that is addressed we can take another look. Thanks!
if err != nil { | ||
return fmt.Errorf("when expanding recovery group: %s", err) | ||
} |
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.
this can be removed here now too since we aren't expanding the group here anymore
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.
updated, sorry for that..
Signed-off-by: ziyeqf <[email protected]>
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 @ziyeqf LGTM!
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. |
fix #22649