modules.archive.unzip: depend on zipfile module

This commit is contained in:
Justin Findlay 2016-09-27 16:27:19 -06:00
parent 315b031de9
commit c1219e68c5

View File

@ -466,6 +466,7 @@ def cmd_unzip(zip_file, dest, excludes=None,
return _trim_files(files, trim_output)
@salt.utils.decorators.depends('zipfile', fallback_function=cmd_unzip)
def unzip(zip_file, dest, excludes=None,
template=None, runas=None, trim_output=False, password=None):
'''