Reverting changes.

This commit is contained in:
Narendra Ingale 2017-03-17 20:27:09 +05:30 committed by rallytime
parent a9107cde44
commit bb62278b73

View file

@ -2061,8 +2061,7 @@ def directory(name,
ret, 'Specified file {0} is not an absolute path'.format(name))
# Check for existing file or symlink
if os.path.isfile(name) or (not allow_symlink and os.path.islink(name))\
or not os.path.exists(os.readlink(name)):
if os.path.isfile(name) or (not allow_symlink and os.path.islink(name)):
# Was a backupname specified
if backupname is not None:
# Make a backup first