Fix for job consumption example using wrong object

Change job consumption example in Job documentation to use
persistence.get_connection().destroy_logbook() instead of
persistence.destroy_logbook()

Change-Id: Ia6d0f2be4dd7cd161ef7b6d8afc32aab532fd69b
Closes-Bug: 1408434
This commit is contained in:
Min Pae
2015-01-07 12:26:19 -08:00
parent 3fed19dd0d
commit a18a939aae

View File

@@ -164,7 +164,7 @@ might look like:
else:
# I finished it, now cleanup.
board.consume(my_job)
persistence.destroy_logbook(my_job.book.uuid)
persistence.get_connection().destroy_logbook(my_job.book.uuid)
time.sleep(coffee_break_time)
...