Skip to content

Commit

Permalink
try to avoid keyerrors
Browse files Browse the repository at this point in the history
  • Loading branch information
UtahDave committed Dec 20, 2012
1 parent 216734d commit edc05e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/win_pkg.py
Expand Up @@ -66,7 +66,7 @@ def available_version(name):
return 'Windows package repo not available'
if not repodata:
return 'Windows package repo not available'
if repodata[name]:
if name in repodata:
return repodata[name]
else:
return name, ' is not available.'
Expand Down

0 comments on commit edc05e3

Please sign in to comment.