Tal Nisan has posted comments on this change.
Change subject: Raise specific exception when local path not exist
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File vdsm/storage/storageServer.py
Line 463: self._path.replace("_",
"__").replace("/", "_"))
Line 464:
Line 465: def checkTarget(self):
Line 466: if not os.path.exists(self._path):
Line 467: raise se.StorageServerLocalDirNotExistError(self._path)
Discussed with Ayal, we'll go with the other idea we had, to include it all in the
StorageServerLocalNotDirError exception and change the message to directory not found or
is not a directory, will send an updated patch soon
Line 468: if not os.path.isdir(self._path):
Line 469: raise se.StorageServerLocalNotDirError(self._path)
Line 470: fileSD.validateDirAccess(self._path)
Line 471: return True
--
To view, visit
http://gerrit.ovirt.org/13724
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I9310e3895e30fa5b2ae9a092aa4c1fef508c8e96
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server