Skip to content

Commit

Permalink
core: add missing execution job message for ReduceImage
Browse files Browse the repository at this point in the history
Bug-Url: https://bugzilla.redhat.com/2120040
Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ahadas committed Aug 28, 2022
1 parent 0eb435c commit a8e5942
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,13 @@ public AuditLogType getAuditLogTypeValue() {
private void addAuditLogCustomValues() {
this.addCustomValue("DiskAlias", getDiskImage().getDiskAlias());
}

@Override
public Map<String, String> getJobMessageProperties() {
if (jobProperties == null) {
jobProperties = super.getJobMessageProperties();
jobProperties.put("diskalias", getDiskImage() != null ? getDiskImage().getDiskAlias() : "");
}
return jobProperties;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ job.RemoveUnregisteredVm=Remove Unregistered VM ${VmName}
job.SwitchMasterStorageDomain=Switching master storage domain from ${OldMaster} to ${NewMaster}
job.ConvertDisk=Converting disk ${DiskName} to ${AllocationPolicy}/${DiskFormat}
job.HybridBackup=Backing up VM ${VM}
job.ReduceImage=Reducing the actual size of Disk ${DiskAlias}

# Step types
step.VALIDATING=Validating
Expand Down

0 comments on commit a8e5942

Please sign in to comment.