From da5f468ef1faef539108f0842708fd74985a2c6e Mon Sep 17 00:00:00 2001 From: v-chen_data Date: Wed, 25 Sep 2024 14:16:37 -0700 Subject: [PATCH] test --- .../command_utils/data_prep/convert_delta_to_json.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llmfoundry/command_utils/data_prep/convert_delta_to_json.py b/llmfoundry/command_utils/data_prep/convert_delta_to_json.py index e44a357f32..d3df004534 100644 --- a/llmfoundry/command_utils/data_prep/convert_delta_to_json.py +++ b/llmfoundry/command_utils/data_prep/convert_delta_to_json.py @@ -547,12 +547,12 @@ def validate_and_get_cluster_info( if res is None: raise ClusterDoesNotExistError(cluster_id) - data_security_mode = str(res.data_security_mode).upper()[len('DATASECURITYMODE.'):] - spark_conf = res.spark_conf - if spark_conf: - print('spark_conf: ', spark_conf) - else: - print('spark_conf: ', 'CANT BE FOUND') + perms = w.permissions.get( + request_object_type='clusters', + request_object_id=cluster_id, + ) + + print('perms: ', perms) # None stands for Shared Access Mode if data_security_mode not in ('NONE', 'SINGLE_USER'):