From 74dfd9eaf6c59389bb66cd206229019107e041fb Mon Sep 17 00:00:00 2001
From: Ryan Sanford <ryansanford@flywheel.io>
Date: Wed, 7 Dec 2016 10:24:05 -0600
Subject: [PATCH] Use the new gear doc hiearchy for prefetch jobs

---
 api/jobs/gears.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/jobs/gears.py b/api/jobs/gears.py
index 13501313..d416575c 100644
--- a/api/jobs/gears.py
+++ b/api/jobs/gears.py
@@ -83,7 +83,7 @@ def insert_gear(doc):
     config.db.gears.insert(doc)
 
     if config.get_item('queue', 'prefetch'):
-        log.info('Queuing prefetch job for gear ' + doc['name'])
+        log.info('Queuing prefetch job for gear ' + doc['gear']['name'])
 
         job = Job(doc['gear']['name'], {}, destination={}, tags=['prefetch'], request={
             'inputs': [
-- 
GitLab