|
23 | 23 |
|
24 | 24 |
|
25 | 25 | def get_storage_data_service_client(cli_ctx, service, name=None, key=None, connection_string=None, sas_token=None, |
26 | | - socket_timeout=None, token_credential=None): |
| 26 | + socket_timeout=None, token_credential=None, location_mode=None): |
27 | 27 | return get_data_service_client(cli_ctx, service, name, key, connection_string, sas_token, |
28 | 28 | socket_timeout=socket_timeout, |
29 | 29 | token_credential=token_credential, |
30 | | - endpoint_suffix=cli_ctx.cloud.suffixes.storage_endpoint) |
| 30 | + endpoint_suffix=cli_ctx.cloud.suffixes.storage_endpoint, |
| 31 | + location_mode=location_mode) |
31 | 32 |
|
32 | 33 |
|
33 | 34 | def generic_data_service_factory(cli_ctx, service, name=None, key=None, connection_string=None, sas_token=None, |
34 | | - socket_timeout=None, token_credential=None): |
| 35 | + socket_timeout=None, token_credential=None, location_mode=None): |
35 | 36 | try: |
36 | 37 | return get_storage_data_service_client(cli_ctx, service, name, key, connection_string, sas_token, |
37 | | - socket_timeout, token_credential) |
| 38 | + socket_timeout, token_credential, location_mode=location_mode) |
38 | 39 | except ValueError as val_exception: |
39 | 40 | _ERROR_STORAGE_MISSING_INFO = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, |
40 | 41 | 'common._error#_ERROR_STORAGE_MISSING_INFO') |
@@ -78,7 +79,8 @@ def blob_data_service_factory(cli_ctx, kwargs): |
78 | 79 | connection_string=kwargs.pop('connection_string', None), |
79 | 80 | sas_token=kwargs.pop('sas_token', None), |
80 | 81 | socket_timeout=kwargs.pop('socket_timeout', None), |
81 | | - token_credential=kwargs.pop('token_credential', None)) |
| 82 | + token_credential=kwargs.pop('token_credential', None), |
| 83 | + location_mode=kwargs.pop('location_mode', None)) |
82 | 84 |
|
83 | 85 |
|
84 | 86 | def table_data_service_factory(cli_ctx, kwargs): |
|
0 commit comments