summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryves <steve.harrison@gmx.net>2011-12-30 00:04:43 +0100
committeryves <steve.harrison@gmx.net>2011-12-30 00:04:43 +0100
commit94af5b08196483f2d5607bd17590d864a7decd2f (patch)
treee1961c1bd893aaedebad07ed4d0fab4432ef3bfe
parenta2b68bf05e29cd96fa0e254ed9236b71e53c8390 (diff)
downloadiscsi-helper-94af5b08196483f2d5607bd17590d864a7decd2f.tar.gz
iscsi-helper-94af5b08196483f2d5607bd17590d864a7decd2f.tar.bz2
iscsi-helper-94af5b08196483f2d5607bd17590d864a7decd2f.zip
cached error in case of file write
-rwxr-xr-xmountDiskSetupVserver.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mountDiskSetupVserver.py b/mountDiskSetupVserver.py
index e8a6953..900af07 100755
--- a/mountDiskSetupVserver.py
+++ b/mountDiskSetupVserver.py
@@ -78,7 +78,9 @@ def writeFile(path,content):
fd = os.open(path)
os.write(fd,content)
os.close(fd)
- expect:
+ except IOError:
+ logError('Unable to write file: ' + path)
+ sys.exit(2)
pl.start('configure iscsi lun for vm')