need to escape the {} for the format dictionary
This commit is contained in:
Daniel Wallace 2014-07-28 19:30:35 -05:00
parent 34ac8a91bc
commit 855fd9f054

View File

@ -1745,7 +1745,7 @@ def owner(*paths):
if not paths:
return ''
ret = {}
cmd = 'rpm -qf --queryformat "%{NAME}" {0!r}'
cmd = 'rpm -qf --queryformat "%{{NAME}}" {0!r}'
for path in paths:
ret[path] = __salt__['cmd.run_stdout'](cmd.format(path),
output_loglevel='trace')