From 90df45bccf4e59b420c80c99b7d71aae8d2c0693 Mon Sep 17 00:00:00 2001 From: yves Date: Sat, 24 Dec 2011 12:17:17 +0100 Subject: improved logfile name, removed stuff --- createAndExportDisk.py | 2 +- shared.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/createAndExportDisk.py b/createAndExportDisk.py index f343b80..125f957 100755 --- a/createAndExportDisk.py +++ b/createAndExportDisk.py @@ -34,7 +34,7 @@ diskSize, diskSizeUnit = parseDiskSize(options.size) pl = ProgressLogger(3) -lf = openLogFile() +lf = openLogFile(sys.argv[0] + "-" + vmName) pl.start('create logical volume') execute(["lvcreate", "-n", vmName, "-L", str(diskSize) + str(diskSizeUnit)],lf) diff --git a/shared.py b/shared.py index a150ea7..be9e457 100644 --- a/shared.py +++ b/shared.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 #coding: UTF-8 import subprocess import sys -- cgit v1.2.3-1-g7c22