Merge pull request #2528 from Suor/datacloud-dead-code

dvc: remove dead code in DataCloud
This commit is contained in:
Ruslan Kuprieiev
2019-09-23 16:26:44 +03:00
committed by GitHub
2 changed files with 2 additions and 22 deletions
-20
View File
@@ -6,14 +6,6 @@ import logging
from dvc.config import Config, NoRemoteError
from dvc.remote import Remote
from dvc.remote.s3 import RemoteS3
from dvc.remote.gs import RemoteGS
from dvc.remote.azure import RemoteAZURE
from dvc.remote.oss import RemoteOSS
from dvc.remote.ssh import RemoteSSH
from dvc.remote.hdfs import RemoteHDFS
from dvc.remote.local import RemoteLOCAL
from dvc.remote.http import RemoteHTTP
logger = logging.getLogger(__name__)
@@ -30,18 +22,6 @@ class DataCloud(object):
config.ConfigError: thrown when config has invalid format.
"""
CLOUD_MAP = {
"aws": RemoteS3,
"gcp": RemoteGS,
"azure": RemoteAZURE,
"oss": RemoteOSS,
"ssh": RemoteSSH,
"hdfs": RemoteHDFS,
"local": RemoteLOCAL,
"http": RemoteHTTP,
"https": RemoteHTTP,
}
def __init__(self, repo):
self.repo = repo
+2 -2
View File
@@ -15,8 +15,8 @@ from mock import patch
from dvc.utils.compat import str
from dvc.main import main
from dvc.config import Config
from dvc.data_cloud import (
DataCloud,
from dvc.data_cloud import DataCloud
from dvc.remote import (
RemoteS3,
RemoteGS,
RemoteAZURE,