Skip to content

Commit

Permalink
Fixes issue with fx.init when creating collaborator
Browse files Browse the repository at this point in the history
Signed-off-by: kta-intel <[email protected]>
  • Loading branch information
kta-intel committed Jun 1, 2023
1 parent 660cc02 commit d6aba40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions openfl/interface/collaborator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def start_(plan, collaborator_name, data_config, secure):
help='The data path to be associated with the collaborator')
@option('-s', '--silent', help='Do not prompt', is_flag=True)
def create_(collaborator_name, data_path, silent):
"""Generate certificate request for the collaborator."""
create(collaborator_name, data_path, silent)

def create(collaborator_name, data_path, silent):
"""Creates a user for an experiment."""
if data_path and is_directory_traversal(data_path):
echo('Data path is out of the openfl workspace scope.')
Expand Down
2 changes: 1 addition & 1 deletion openfl/native/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def init(workspace_template: str = 'default', log_level: str = 'INFO',
collaborator.create(
col_name, str(data_path), silent=True)
collaborator.generate_cert_request(
col_name, str(data_path), silent=True, skip_package=True)
col_name, silent=True, skip_package=True)
collaborator.certify(col_name, silent=True)
data_path += 1

Expand Down

0 comments on commit d6aba40

Please sign in to comment.