Daniel Erez has uploaded a new change for review.

Change subject: core: auditlog for importing a VM from a data domain
......................................................................

core: auditlog for importing a VM from a data domain

For an indication of a successful VM registration,
added an AuditLog to register flow in ImportVmFromConfigurationCommand.

Change-Id: Id1970de670e95f2a1bf1c86b24b9978334af734a
Signed-off-by: Daniel Erez <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromConfigurationCommand.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/96/28696/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromConfigurationCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromConfigurationCommand.java
index b75ad5f..83af2a1 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromConfigurationCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromConfigurationCommand.java
@@ -96,6 +96,7 @@
         if (getSucceeded()) {
             if (isImagesAlreadyOnTarget()) {
                 
getUnregisteredOVFDataDao().removeEntity(ovfEntityData.getEntityId(), null);
+                AuditLogDirector.log(this, 
AuditLogType.VM_IMPORT_FROM_CONFIGURATION_EXECUTED_SUCCESSFULLY);
             } else if (!vmDisksToAttach.isEmpty()) {
                 AuditLogDirector.log(this, 
attemptToAttachDisksToImportedVm(vmDisksToAttach));
             }


-- 
To view, visit http://gerrit.ovirt.org/28696
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1970de670e95f2a1bf1c86b24b9978334af734a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to