diff --git a/salt/modules/archive.py b/salt/modules/archive.py index 59859b3f32..c3c77863af 100644 --- a/salt/modules/archive.py +++ b/salt/modules/archive.py @@ -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): '''