cp.get_url: fix variable type check

This commit is contained in:
Denys Havrysh 2016-10-17 13:06:29 +03:00
parent b33f4d7b93
commit 983f82fcf4

View file

@ -333,7 +333,7 @@ def get_url(path, dest, saltenv='base', env=None):
# Backwards compatibility
saltenv = env
if isinstance(dest, six.string_type):
if isinstance(dest, six.string_types):
result = _client().get_url(path, dest, False, saltenv)
else:
result = _client().get_url(path, None, False, saltenv, no_cache=True)