summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')