diff options
author | Max Illfelder <illfelder@users.noreply.github.com> | 2019-05-14 11:10:33 -0700 |
---|---|---|
committer | Zach Marano <zmarano@google.com> | 2019-05-14 11:10:33 -0700 |
commit | 64213603ea6b37714d5cbcc452f3fc954fcbd6c5 (patch) | |
tree | 2ff3fd5845ac275a11f628eb5795df2b2f39a3ee /packages/python-google-compute-engine/google_compute_engine/constants.py | |
parent | e5217351135ca78445c12b6e27b80b0ece2b2e43 (diff) | |
download | google-compute-image-packages-64213603ea6b37714d5cbcc452f3fc954fcbd6c5.tar.gz |
Do not set up the boto config in Python 3. (#764)
Users can override this value using the template config.
Diffstat (limited to 'packages/python-google-compute-engine/google_compute_engine/constants.py')
-rw-r--r-- | packages/python-google-compute-engine/google_compute_engine/constants.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/python-google-compute-engine/google_compute_engine/constants.py b/packages/python-google-compute-engine/google_compute_engine/constants.py index cfe87c4..d929baf 100644 --- a/packages/python-google-compute-engine/google_compute_engine/constants.py +++ b/packages/python-google-compute-engine/google_compute_engine/constants.py @@ -16,6 +16,7 @@ """A module for global constants.""" import platform +import sys OSLOGIN_CONTROL_SCRIPT = 'google_oslogin_control' OSLOGIN_NSS_CACHE_SCRIPT = 'google_oslogin_nss_cache' @@ -41,3 +42,8 @@ else: OSLOGIN_NSS_CACHE = '/etc/oslogin_passwd.cache' SYSCONFDIR = '/etc/default' SYSLOG_SOCKET = '/dev/log' + +if sys.version_info >= (3, 0): + SET_BOTO_CONFIG = 'false' +else: + SET_BOTO_CONFIG = 'true' |