Move job_repo_url related calls to afe_utils

This is to allow adb_host to adopt similar appraoch to store devserver
url to host attributes.

BUG=chromium:586327
TEST=local run test, unittest suite

Change-Id: Iab2d05c4b7a8278ca8499025038995ea1d5aaae1
Reviewed-on: https://chromium-review.googlesource.com/327257
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
diff --git a/server/cros/autoupdate_utils.py b/server/cros/autoupdate_utils.py
index 9e8e39b..9ee0a27 100644
--- a/server/cros/autoupdate_utils.py
+++ b/server/cros/autoupdate_utils.py
@@ -9,6 +9,7 @@
 import common
 from autotest_lib.client.common_lib import error
 from autotest_lib.client.common_lib.cros import autoupdater, dev_server
+from autotest_lib.server import afe_utils
 from autotest_lib.server.cros.dynamic_suite import tools
 
 
@@ -34,7 +35,7 @@
     # specified in the host attributes for the host.
     if not job_repo_url:
         try:
-            job_repo_url = host.lookup_job_repo_url()
+            job_repo_url = afe_utils.lookup_job_repo_url(host)
         except KeyError:
             logging.fatal('Could not lookup job_repo_url from afe.')