[autotest] Change to read global_afe_hostname from different config key.
global_afe_hostname now is in [SERVER] section instead of [SHARD].
BUG=chromium:524678
TEST=None
Change-Id: Ic10e100925e99e2b062fde618e6489664322c201
Reviewed-on: https://chromium-review.googlesource.com/295687
Commit-Ready: Mungyung Ryu <mkryu@google.com>
Tested-by: Mungyung Ryu <mkryu@google.com>
Reviewed-by: Dan Shi <dshi@chromium.org>
diff --git a/frontend/afe/rpc_utils.py b/frontend/afe/rpc_utils.py
index 2761c31..1c14350 100644
--- a/frontend/afe/rpc_utils.py
+++ b/frontend/afe/rpc_utils.py
@@ -1279,7 +1279,7 @@
def get_global_afe_hostname():
"""Read the hostname of the global AFE from the global configuration."""
return global_config.global_config.get_config_value(
- 'SHARD', 'global_afe_hostname')
+ 'SERVER', 'global_afe_hostname')
def route_rpc_to_master(func):