Skip to content

Commit

Permalink
select correct file name
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Dec 7, 2023
1 parent 7166d3b commit c3f3b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fedn/fedn/network/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _get_compute_package_name(self):
return None, message
else:
try:
name = package_objects["filename"]
name = package_objects["storage_file_name"]
except KeyError as e:
message = "No compute package found. Key error."
print(e)
Expand Down
2 changes: 1 addition & 1 deletion fedn/fedn/network/controller/controlbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_compute_package_name(self):
definition = self.statestore.get_compute_package()
if definition:
try:
package_name = definition["filename"]
package_name = definition["storage_file_name"]
return package_name
except (IndexError, KeyError):
print(
Expand Down

0 comments on commit c3f3b60

Please sign in to comment.