Skip to content

Commit b98305d

Browse files
author
Jon Ludlam
committed
Merge pull request #1 from johnelse/api-messages
Use Api_messages to get message priority
2 parents 291469f + 564b695 commit b98305d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
*.swp
2-
_build/
3-
setup.data
4-
setup.log
5-
setup.bin
62

7-
networkd.native
8-
networkd_db.native
3+
dist/

networkd/network_monitor_thread.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let send_bond_change_alert dev interfaces message =
4141
let obj_uuid = Inventory.lookup Inventory._installation_uuid in
4242
let body = Printf.sprintf "The status of the %s bond %s" ifaces message in
4343
try
44-
let (name, priority) = ("bond_status_changed",3L) (* Api_messages.bond_status_changed *) in
44+
let (name, priority) = Api_messages.bond_status_changed in
4545
let (_ : API.ref_message) = XenAPI.Message.create ~rpc:xapi_rpc ~session_id
4646
~name ~priority ~cls:`Host ~obj_uuid ~body in ()
4747
with _ ->

0 commit comments

Comments
 (0)