Fix Directory conftype

This commit is contained in:
Florian Bruhin 2017-06-15 13:04:50 +02:00
parent 61ba92ae18
commit ffd1a91467

View File

@ -978,9 +978,9 @@ class Directory(BaseType):
"""A directory on the local filesystem."""
def from_py(self, value):
self._basic_py_validation(value, dict)
self._basic_py_validation(value, str)
if not value:
return
return None
value = os.path.expandvars(value)
value = os.path.expanduser(value)
try: