Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _connect(tag):
""" Connects to the backend and receive credentials
"""
creds = HubControlClient().get_config()
dataset = HubControlClient().get_dataset_path(tag)
if dataset and "path" in dataset:
path = dataset["path"]
else:
path = f"{creds['bucket']}/{tag}"
return path, creds
def _connect(tag):
""" Connects to the backend and receive credentials
"""
creds = HubControlClient().get_config()
dataset = HubControlClient().get_dataset_path(tag)
if dataset and "path" in dataset:
path = dataset["path"]
else:
path = f"{creds['bucket']}/{tag}"
return path, creds
def __init__(self):
super(HubControlClient, self).__init__()
self.details = self.get_config()