From 81b956918847cc24c13b74fd0b1c8c7b22452598 Mon Sep 17 00:00:00 2001 From: frank Date: Tue, 1 Nov 2011 15:30:26 -0700 Subject: [PATCH] Ovm, fix log --- ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py b/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py index 9f630ada5e3..2e9f5c885ff 100755 --- a/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py +++ b/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py @@ -354,7 +354,7 @@ if this doesn't resolve the problem, please check oracle manual to see how to of #This prevent us deleting whole secondary in case we got a wrong installPath if destPath == secMountPoint: raise Exception("Install path equals to root of secondary storage(%s)"%destPath) if exists(destPath): - logger.warning("%s is already here, delete it since it is most likely stale"%destPath) + logger.warning(OvmStoragePool.createTemplateFromVolume, "%s is already here, delete it since it is most likely stale"%destPath) doCmd(['rm', '-rf', destPath]) OvmStoragePool()._checkDirSizeForImage(secMountPoint, volumePath) @@ -402,7 +402,7 @@ if this doesn't resolve the problem, please check oracle manual to see how to of #This prevent us deleting whole secondary in case we got a wrong volumeFolderOnSecStorage if destPath == secMountPoint: raise Exception("volume path equals to root of secondary storage(%s)"%destPath) if exists(destPath): - logger.warning("%s already exists, delete it first"%destPath) + logger.warning(OvmStoragePool.copyVolume, "%s already exists, delete it first"%destPath) doCmd(['rm', '-rf', destPath]) os.makedirs(destPath) newName = get_uuid() + ".raw"