Add in option to report internal IP (--report_internal_ip).
--report_internal_ip will report the internal IP instead of the external
IP. This is needed when someone is connecting to the AVD GCE instance from
another GCE instance.
Note: I ignored pylint duplicate code errors since common_operations,
create_cuttlefish_action, and create_goldfish_action are so similar. The
create work will refactor out the common code into 1 place so it's safe
to ignore for now.
Bug: 113535553
Test: ./run_tests.sh and acloud create
m acloud_test && acloud_test
Change-Id: I6ac840048eb0854f7dcdc223b846826e266b0ad5
diff --git a/internal/lib/android_compute_client.py b/internal/lib/android_compute_client.py
index 21aa137..9dde2c8 100755
--- a/internal/lib/android_compute_client.py
+++ b/internal/lib/android_compute_client.py
@@ -341,7 +341,7 @@
zone: String, representing zone name, e.g. "us-central1-f"
Returns:
- string, IP of the instance.
+ NamedTuple of (internal, external) IP of the instance.
"""
return super(AndroidComputeClient, self).GetInstanceIP(
instance, zone or self._zone)