summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2016-03-15 12:01:41 +0000
committerAlex Bennée <alex.bennee@linaro.org>2016-03-15 12:01:41 +0000
commit89b345dc5491fac7c7d69f7fa9310fee911dedcc (patch)
tree8160a455a3a889507fc58440859f48ce83435f23
parentc26d878a0a1780dd1a322443b261e06ad48cb8f6 (diff)
lava-job-list: clean up job definition code
-rw-r--r--lava-job-list-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lava-job-list-mode.el b/lava-job-list-mode.el
index 63a7865..e5b92ab 100644
--- a/lava-job-list-mode.el
+++ b/lava-job-list-mode.el
@@ -294,10 +294,10 @@ Letters do not insert themselves; instead, they are commands.
(def-buf (lava-job--definition-buffer job-id)))
(if (get-buffer def-buf)
(switch-to-buffer def-buf)
- (let ((job-log (format
- "http://%s/scheduler/job/%s/definition/plain"
- lava-host job-id)))
- (url-retrieve job-log 'lava-job--grab-definition `(,job-id))))))
+ (let ((job-def-url (format
+ "scheduler/job/%s/definition/plain" job-id)))
+ (lava-rpc-fetch-url job-def-url 'lava-job--grab-definition `(,job-id))))))
+
;;;###autoload
(defun lava-list-jobs ()