Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:saltstack/salt into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed Jun 16, 2012
2 parents f9a1f88 + de1d987 commit 0952be6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions salt/utils/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@ def _parse_size(value):
style = '='

if len(scalar) > 0:
multiplier = {'k': 2 ** 10,
multiplier = {'b': 2 ** 0,
'k': 2 ** 10,
'm': 2 ** 20,
'g': 2 ** 30,
't': 2 ** 40}.get(scalar[-1])
't': 2 ** 40}.get(scalar[-1].lower())
if multiplier:
scalar = scalar[:-1].strip()
else:
Expand Down Expand Up @@ -308,7 +309,7 @@ def __init__(self, key, value):
self.uids.add(int(name))
else:
try:
self.uid = pwd.getpwnam(value).pw_uid
self.uids.add(pwd.getpwnam(value).pw_uid)
except KeyError:
raise ValueError('no such user "{0}"'.format(name))

Expand Down

0 comments on commit 0952be6

Please sign in to comment.