File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
api/src/main/java/org/apache/cloudstack/api/command/user/backup Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1919
2020import javax .inject .Inject ;
2121
22+ import com .cloud .vm .VirtualMachine ;
2223import org .apache .cloudstack .acl .RoleType ;
2324import org .apache .cloudstack .api .APICommand ;
2425import org .apache .cloudstack .api .ApiCommandResourceType ;
@@ -138,7 +139,8 @@ public String getEventType() {
138139
139140 @ Override
140141 public String getEventDescription () {
141- return "Creating backup for VM " + vmId ;
142+ String vmUuid = _uuidMgr .getUuid (VirtualMachine .class , getVmId ());
143+ return "Creating backup for VM " + vmUuid ;
142144 }
143145
144146 @ Override
Original file line number Diff line number Diff line change 2828import org .apache .cloudstack .api .ServerApiException ;
2929import org .apache .cloudstack .api .response .BackupResponse ;
3030import org .apache .cloudstack .api .response .SuccessResponse ;
31+ import org .apache .cloudstack .backup .Backup ;
3132import org .apache .cloudstack .backup .BackupManager ;
3233import org .apache .cloudstack .context .CallContext ;
3334import org .apache .commons .lang3 .BooleanUtils ;
@@ -111,6 +112,7 @@ public String getEventType() {
111112
112113 @ Override
113114 public String getEventDescription () {
114- return "Deleting backup ID " + backupId ;
115+ String backupUuid = _uuidMgr .getUuid (Backup .class , getId ());
116+ return "Deleting backup ID " + backupUuid ;
115117 }
116118}
Original file line number Diff line number Diff line change 2828import org .apache .cloudstack .api .ServerApiException ;
2929import org .apache .cloudstack .api .response .SuccessResponse ;
3030import org .apache .cloudstack .api .response .BackupResponse ;
31+ import org .apache .cloudstack .backup .Backup ;
3132import org .apache .cloudstack .backup .BackupManager ;
3233import org .apache .cloudstack .context .CallContext ;
3334
@@ -99,6 +100,7 @@ public String getEventType() {
99100
100101 @ Override
101102 public String getEventDescription () {
102- return "Restoring VM from backup: " + backupId ;
103+ String backupUuid = _uuidMgr .getUuid (Backup .class , getBackupId ());
104+ return "Restoring VM from backup: " + backupUuid ;
103105 }
104106}
You can’t perform that action at this time.
0 commit comments