ensure-dirs: Refine error handling on stat(2)
authorMichael Hanselmann <hansmi@google.com>
Fri, 19 Aug 2011 09:11:19 +0000 (11:11 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 19 Aug 2011 12:11:36 +0000 (14:11 +0200)
commitd00a730d2cd8294e06c46274a94cf6ace4dee4b1
tree062040810636854634d5c8a77b9c21ab15b87c7c
parent297657a2f68bbbbac8bf1c4b17853b571d61fe98
ensure-dirs: Refine error handling on stat(2)

The “_stat_fn” function is renamed to “_lstat_fn” to reflect its
function. The try/except block just wraps calling lstat(2) and nothing
else.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
lib/tools/ensure_dirs.py
test/ganeti.tools.ensure_dirs_unittest.py