File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5454# Timeout in seconds to wait for the GCE metadata server when detecting the
5555# GCE environment.
5656try :
57- _METADATA_DEFAULT_TIMEOUT = int (os .getenv (" GCE_METADATA_TIMEOUT" , 3 ))
57+ _METADATA_DEFAULT_TIMEOUT = int (os .getenv (environment_vars . GCE_METADATA_TIMEOUT , 3 ))
5858except ValueError : # pragma: NO COVER
5959 _METADATA_DEFAULT_TIMEOUT = 3
6060
Original file line number Diff line number Diff line change 6060"""Environment variable providing an alternate ip:port to be used for ip-only
6161GCE metadata requests."""
6262
63+ GCE_METADATA_TIMEOUT = "GCE_METADATA_TIMEOUT"
64+ """Environment variable defining the timeout in seconds to wait for the
65+ GCE metadata server when detecting the GCE environment.
66+ """
67+
6368GCE_METADATA_DETECT_RETRIES = "GCE_METADATA_DETECT_RETRIES"
6469"""Environment variable representing the number of retries that should be
6570attempted on metadata lookup.
You can’t perform that action at this time.
0 commit comments