diff --git a/dvc_ssh/__init__.py b/dvc_ssh/__init__.py index 81b1ab8..633855a 100644 --- a/dvc_ssh/__init__.py +++ b/dvc_ssh/__init__.py @@ -52,7 +52,7 @@ def _prepare_credentials(self, **config): "client_factory", InteractiveSSHClient ) try: - assert config.get("host) is not None + assert config.get("host") is not None user_ssh_config = parse_config( host=config["host"], port=config.get("port", DEFAULT_PORT) ) @@ -61,6 +61,7 @@ def _prepare_credentials(self, **config): user_ssh_config = {} except Exception: # host could have been None + # just doing this to check if test passes user_ssh_config = {} login_info["host"] = user_ssh_config.get("Hostname", config["host"])