Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sync/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Library for leveraging the power of Sync"""
__version__ = "1.0.1"
__version__ = "1.0.2"

TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
16 changes: 10 additions & 6 deletions sync/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Basic Sync CLI
"""

import logging

import click
Expand All @@ -9,7 +10,7 @@
from sync.cli import awsdatabricks, azuredatabricks, projects, workspaces
from sync.cli.util import OPTIONAL_DEFAULT
from sync.clients.sync import get_default_client
from sync.config import API_KEY, DB_CONFIG, APIKey, DatabricksConf, init
from sync.config import API_KEY, CONFIG, DB_CONFIG, APIKey, Configuration, DatabricksConf, init

LOG_FORMAT = "%(asctime)s %(levelname)s [%(name)s] %(message)s"

Expand Down Expand Up @@ -77,11 +78,14 @@ def configure(

init(
APIKey(api_key_id=api_key_id, api_key_secret=api_key_secret),
DatabricksConf(host=dbx_host, token=dbx_token, aws_region_name=dbx_region)
if dbx_host != OPTIONAL_DEFAULT
and dbx_token != OPTIONAL_DEFAULT
and dbx_region != OPTIONAL_DEFAULT
else None,
Configuration(api_url=CONFIG.api_url if CONFIG else "https://api.synccomputing.com"),
(
DatabricksConf(host=dbx_host, token=dbx_token, aws_region_name=dbx_region)
if dbx_host != OPTIONAL_DEFAULT
and dbx_token != OPTIONAL_DEFAULT
and dbx_region != OPTIONAL_DEFAULT
else None
),
)


Expand Down