diff --git a/runhouse/servers/obj_store.py b/runhouse/servers/obj_store.py index 0b3593358..444f8c489 100644 --- a/runhouse/servers/obj_store.py +++ b/runhouse/servers/obj_store.py @@ -1238,6 +1238,7 @@ def status_local(self): def status(self): config_cluster = self.get_cluster_config() + config_cluster.pop("ssh_creds", None) cluster_servlets = {} for env in self.get_all_initialized_env_servlet_names(): resources_in_env_modified = self.call_actor_method( diff --git a/tests/test_resources/test_clusters/test_cluster.py b/tests/test_resources/test_clusters/test_cluster.py index 7142cbe28..bd59043f8 100644 --- a/tests/test_resources/test_clusters/test_cluster.py +++ b/tests/test_resources/test_clusters/test_cluster.py @@ -196,6 +196,7 @@ def test_rh_here_objects(self, cluster): def test_rh_status_pythonic(self, cluster): cluster.put(key="status_key1", obj="status_value1", env="numpy_env") res = cluster.status() + assert res.get("ssh_certs") is None assert res.get("server_port") == (cluster.server_port or DEFAULT_SERVER_PORT) assert res.get("server_connection_type") == cluster.server_connection_type assert res.get("den_auth") == cluster.den_auth @@ -219,6 +220,7 @@ def test_rh_status_cli(self, cluster): assert "Serving 🍦 :" in res assert "base_env (runhouse.resources.envs.env.Env):" in res assert "status_key2 (str)" in res + assert "ssh_certs" not in res @pytest.mark.skip("Restarting the server mid-test causes some errors, need to fix") @pytest.mark.level("local")