@@ -17,29 +17,29 @@ def _lvol_event(lvol, message, caused_by, event):
17
17
db_object = lvol ,
18
18
caused_by = caused_by ,
19
19
message = message ,
20
- node_id = lvol .node_id )
20
+ node_id = lvol .get_id () )
21
21
22
22
23
23
def lvol_create (lvol , caused_by = ec .CAUSED_BY_CLI ):
24
- _lvol_event (lvol , f"LVol created: { lvol . get_id () } " , caused_by , ec .EVENT_OBJ_CREATED )
24
+ _lvol_event (lvol , f"LVol created" , caused_by , ec .EVENT_OBJ_CREATED )
25
25
26
26
27
27
def lvol_delete (lvol , caused_by = ec .CAUSED_BY_CLI ):
28
- _lvol_event (lvol , f"LVol deleted: { lvol . get_id () } " , caused_by , ec .EVENT_OBJ_DELETED )
28
+ _lvol_event (lvol , f"LVol deleted" , caused_by , ec .EVENT_OBJ_DELETED )
29
29
30
30
31
31
def lvol_status_change (lvol , new_state , old_status , caused_by = ec .CAUSED_BY_CLI ):
32
- _lvol_event (lvol , f"LVol { lvol . get_id () } status changed from: { old_status } to: { new_state } " , caused_by , ec .EVENT_STATUS_CHANGE )
32
+ _lvol_event (lvol , f"LVol status changed from: { old_status } to: { new_state } " , caused_by , ec .EVENT_STATUS_CHANGE )
33
33
34
34
35
35
def lvol_migrate (lvol , old_node , new_node , caused_by = ec .CAUSED_BY_CLI ):
36
- _lvol_event (lvol , f"LVol { lvol . get_id () } migrated from: { old_node } , \n to { new_node } " , caused_by , ec .EVENT_STATUS_CHANGE )
36
+ _lvol_event (lvol , f"LVol migrated from: { old_node } to: { new_node } " , caused_by , ec .EVENT_STATUS_CHANGE )
37
37
38
38
39
39
def lvol_health_check_change (lvol , new_state , old_status , caused_by = ec .CAUSED_BY_CLI ):
40
- _lvol_event (lvol , f"LVol { lvol . get_id () } health check changed from: { old_status } to: { new_state } " , caused_by , ec .EVENT_STATUS_CHANGE )
40
+ _lvol_event (lvol , f"LVol health check changed from: { old_status } to: { new_state } " , caused_by , ec .EVENT_STATUS_CHANGE )
41
41
42
42
43
43
def lvol_io_error_change (lvol , new_state , old_status , caused_by = ec .CAUSED_BY_CLI ):
44
- _lvol_event (lvol , f"LVol { lvol . get_id () } IO Error changed from: { old_status } to: { new_state } " , caused_by , ec .EVENT_STATUS_CHANGE )
44
+ _lvol_event (lvol , f"LVol IO Error changed from: { old_status } to: { new_state } " , caused_by , ec .EVENT_STATUS_CHANGE )
45
45
0 commit comments