[autotest] Fix get_host_diagnosis_interval() for shards.

The call detected "host has a shard", but didn't detect "... and
I'm the shard for the host", leading to infinite RPC recursion.
Very Bad.

BUG=chromium:492662
TEST=test on the .cbf shard

Change-Id: I6dc2c615bae4fe8266b8fcb6bedeb7647024c83c
Reviewed-on: https://chromium-review.googlesource.com/282580
Reviewed-by: Dan Shi <dshi@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Richard Barnette <jrbarnette@chromium.org>
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index 20c5383..6662d82 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -1356,7 +1356,7 @@
 
     """
     host = models.Host.smart_get(host_id)
-    if not host.shard:
+    if not host.shard or utils.is_shard():
         return status_history.get_diagnosis_interval(
                 host_id, end_time, success)
     else: