Skip to content

Commit

Permalink
Merge branch 'hqapi-1.0' of github.com:hyperic/hqapi into hqapi-1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Morgan committed Jan 12, 2010
2 parents 18ca733 + 1f33b56 commit 6cc4557
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hqu/hqapi1/app/AlertdefinitionController.groovy
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 6cc4557

Please sign in to comment.