Skip to content

Commit

Permalink
Merge pull request #25601 from terminalmage/fix-error-msg
Browse files Browse the repository at this point in the history
Fix error message when local bin pkg path is not absolute
  • Loading branch information
Mike Place committed Jul 22, 2015
2 parents bc2321a + dcccb0d commit 40e9b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions salt/modules/pkg_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ def parse_targets(name=None,
# append the cached path.
srcinfo.append(__salt__['cp.cache_file'](pkg_src, saltenv))
else:
# Package file local to the minion, just append the tuple from
# the pack_sources() return data.
# Package file local to the minion, just append the path to the
# package file.
if not os.path.isabs(pkg_src):
raise SaltInvocationError(
'Path {0} for package {1} is either not absolute or '
'an invalid protocol'.format(pkg_src[0], pkg_name)
'an invalid protocol'.format(pkg_src, pkg_name)
)
srcinfo.append(pkg_src)

Expand Down

0 comments on commit 40e9b07

Please sign in to comment.