Skip to content

Commit

Permalink
Fix certificates for federated_runtime.py
Browse files Browse the repository at this point in the history
Signed-off-by: Ishant Thakare <[email protected]>
  • Loading branch information
ishant162 committed Dec 16, 2024
1 parent 79d989b commit ec7248a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@
"metadata": {},
"outputs": [],
"source": [
"#| export\n",
"\n",
"import torchvision\n",
"\n",
"# Train and Test datasets\n",
Expand Down Expand Up @@ -600,9 +602,6 @@
"director_info = {\n",
" 'director_node_fqdn':'localhost',\n",
" 'director_port':50050,\n",
" 'cert_chain': None,\n",
" 'api_cert': None,\n",
" 'api_private_key': None,\n",
"}\n",
"\n",
"federated_runtime = FederatedRuntime(\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,6 @@
"director_info = {\n",
" 'director_node_fqdn':'localhost',\n",
" 'director_port':50050,\n",
" 'cert_chain': None,\n",
" 'api_cert': None,\n",
" 'api_private_key': None,\n",
"}\n",
"\n",
"authorized_collaborators = ['Bangalore', 'Chandler']\n",
Expand Down
6 changes: 3 additions & 3 deletions openfl/experimental/workflow/runtime/federated_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def __init__(
if director:
self.director = director
self._fill_certs(
self.director["cert_chain"],
self.director["api_private_key"],
self.director["api_cert"],
self.director.get("cert_chain", None),
self.director.get("api_private_key", None),
self.director.get("api_cert", None),
)
self._dir_client = self._create_director_client()

Expand Down

0 comments on commit ec7248a

Please sign in to comment.