Skip to content

Commit

Permalink
fixed logic and spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Jan 25, 2016
1 parent 6ddc702 commit 36cf0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open_fmri/apps/log_parse/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def log_parse_task():
acquire_lock = lambda: cache.add(lock_id, 'true')
release_lock = lambda: cache.delete(lock_id)

if aquire_lock():
if acquire_lock():
try:
parse_log_files()
finally:
Expand Down Expand Up @@ -68,7 +68,7 @@ def parse_log_files():
else:
continue
except ObjectDoesNotExist:
log_file = LogFile(key=key, parsed=False, lock=True)
log_file = LogFile(key=key.key, parsed=False, lock=True)
log_file.save()

contents = str(key.get_contents_as_string())
Expand Down

0 comments on commit 36cf0b5

Please sign in to comment.