diff --git a/salt/modules/junos.py b/salt/modules/junos.py index b58529613d..9e41482bb5 100644 --- a/salt/modules/junos.py +++ b/salt/modules/junos.py @@ -1005,7 +1005,7 @@ def install_os(path=None, **kwargs): return ret image_cached_path = files.mkstemp() - __salt__['cp.get_template'](path, image_cached_path) + __salt__['cp.get_file'](path, image_cached_path) if not os.path.isfile(image_cached_path): ret['message'] = 'Invalid image path.'