You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
AssignSLA currently has an idempotence check that will not assign an SLA if its already applied via inheritance. The function should overwrite any inherited assignment with a direct assignment instead.
Describe the solution you'd like
Current:
varcurrentSLAIDstringswitchslaID {
case"INHERIT":
currentSLAID=vmSummary.(map[string]interface{})["configuredSlaDomainId"].(string)
default:
currentSLAID=vmSummary.(map[string]interface{})["effectiveSlaDomainId"].(string)
}
ifslaID==currentSLAID {
returnnil, fmt.Errorf("No change required. The vSphere VM '%s' is already assigned to the '%s' SLA Domain", objectName, slaName)
}
Updates:
ifslaID==vmSummary.(map[string]interface{})["configuredSlaDomainId"].(string) {
returnnil, fmt.Errorf("No change required. The vSphere VM '%s' is already assigned to the '%s' SLA Domain", objectName, slaName)
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
AssignSLA currently has an idempotence check that will not assign an SLA if its already applied via inheritance. The function should overwrite any inherited assignment with a direct assignment instead.
Describe the solution you'd like
Current:
Updates:
The text was updated successfully, but these errors were encountered: