Skip to content

Commit

Permalink
[HHQ-3624] For resource type alert definitions, update the "basic" in…
Browse files Browse the repository at this point in the history
…formation in a separate call so that the instance alert definitions are also updated
  • Loading branch information
pnguyen committed Jan 12, 2010
1 parent c9df798 commit 1f33b56
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hqu/hqapi1/app/AlertdefinitionController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,16 @@ public class AlertdefinitionController extends ApiController {
}
adv.id = newDef.id
} else {
if (typeBased
&& (!adv.name.equals(existing.name)
|| !adv.description.equals(existing.description)
|| adv.priority != existing.priority
|| adv.active != existing.active)) {

eventBoss.updateAlertDefinitionBasic(sessionId, adv.id,
adv.name, adv.description,
adv.priority, adv.active)
}
eventBoss.updateAlertDefinition(sessionId, adv)
}
} catch (Exception e) {
Expand Down

0 comments on commit 1f33b56

Please sign in to comment.