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:
@@ -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)
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user