Skip to content

Commit

Permalink
Prevent traceback using refresh param
Browse files Browse the repository at this point in the history
Make the same change as was made in f0d1043 to pacman.py
  • Loading branch information
terminalmage committed Jan 18, 2013
1 parent 33a84f2 commit 4e0173d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def install(name=None, refresh=False, pkgs=None, sources=None, **kwargs):
fname = '"{0}{1}{2}"'.format(fname, vsign, kwargs[vkey])
break
# Catch both boolean input from state and string input from CLI
if refresh is True or refresh.lower() == 'true':
if refresh is True or str(refresh).lower() == 'true':
cmd = 'pacman -Syu --noprogressbar --noconfirm {0}'.format(fname)
else:
cmd = 'pacman -S --noprogressbar --noconfirm {0}'.format(fname)
Expand Down

0 comments on commit 4e0173d

Please sign in to comment.