File gsutilSupportBotoCfgKeyword.patch of Package google-cloud-sdk

Index: google-cloud-sdk-0.9.16/platform/gsutil/gslib/third_party/oauth2_plugin/oauth2_helper.py
===================================================================
--- google-cloud-sdk-0.9.16.orig/platform/gsutil/gslib/third_party/oauth2_plugin/oauth2_helper.py
+++ google-cloud-sdk-0.9.16/platform/gsutil/gslib/third_party/oauth2_plugin/oauth2_helper.py
@@ -93,6 +93,9 @@ def OAuth2ClientFromBotoConfig(config,
     client_id = config.get('OAuth2', 'client_id', GSUTIL_CLIENT_ID)
     client_secret = config.get(
         'OAuth2', 'client_secret', GSUTIL_CLIENT_NOTSOSECRET)
+    certs_file = config.get_value('Boto', 'ca_certificates_file')
+    if certs_file == 'system':
+        certs_file = None
     return oauth2_client.OAuth2UserAccountClient(
             provider_token_uri, client_id, client_secret,
             config.get('Credentials', 'gs_oauth2_refresh_token'),
@@ -101,7 +104,7 @@ def OAuth2ClientFromBotoConfig(config,
             disable_ssl_certificate_validation=not(config.getbool(
                 'Boto', 'https_validate_certificates', True)),
             proxy_host=proxy_host, proxy_port=proxy_port,
-            ca_certs_file=config.get_value('Boto', 'ca_certificates_file'))
+            ca_certs_file=certs_file)
   else:
     raise Exception('You have attempted to create an OAuth2 client without '
         'setting up OAuth2 credentials. Please run "gsutil config" to set up '