diff options
author | yves <steve.harrison@gmx.net> | 2011-12-30 00:04:43 +0100 |
---|---|---|
committer | yves <steve.harrison@gmx.net> | 2011-12-30 00:04:43 +0100 |
commit | 94af5b08196483f2d5607bd17590d864a7decd2f (patch) | |
tree | e1961c1bd893aaedebad07ed4d0fab4432ef3bfe | |
parent | a2b68bf05e29cd96fa0e254ed9236b71e53c8390 (diff) | |
download | iscsi-helper-94af5b08196483f2d5607bd17590d864a7decd2f.tar.gz iscsi-helper-94af5b08196483f2d5607bd17590d864a7decd2f.tar.bz2 iscsi-helper-94af5b08196483f2d5607bd17590d864a7decd2f.zip |
cached error in case of file write
-rwxr-xr-x | mountDiskSetupVserver.py | 4 |
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') |