From 52e2f2a2f66e886c3b24f870096e333dcc82f5e3 Mon Sep 17 00:00:00 2001 From: Google Colaboratory Team Date: Tue, 10 Sep 2024 14:43:36 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 673112582 --- google/colab/drive.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google/colab/drive.py b/google/colab/drive.py index 01ecdf5f..ee376a2b 100644 --- a/google/colab/drive.py +++ b/google/colab/drive.py @@ -124,6 +124,12 @@ def _mount( if ' ' in mountpoint: raise ValueError('Mountpoint must not contain a space.') + if _os.environ.get('VERTEX_PRODUCT') == 'COLAB_ENTERPRISE': + print( + 'WARNING: google.colab.drive.mount is not supported in' + ' Colab Enterprise.' + ) + return metadata_server_addr = ( _os.environ['TBE_EPHEM_CREDS_ADDR'] if ephemeral