Skip to content

Commit

Permalink
fix: incorrect use of Config class. (#2317)
Browse files Browse the repository at this point in the history
The config class was used incorrectly to load the resultserver ip resulting in an error at db.add_machine because an empy Config object cannot be casted into the required type
  • Loading branch information
bryanster authored Sep 14, 2024
1 parent ba39c0c commit be7fe3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/machinery/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _allocate_new_machine(self):
# machine, else use the default value.
interface = autoscale_options["interface"] if autoscale_options.get("interface") else machinery_options.get("interface")
resultserver_ip = (
autoscale_options["resultserver_ip"] if autoscale_options.get("resultserver_ip") else Config("cuckoo:resultserver:ip")
autoscale_options["resultserver_ip"] if autoscale_options.get("resultserver_ip") else Config().get("resultserver").get("ip")
)
if autoscale_options.get("resultserver_port"):
resultserver_port = autoscale_options["resultserver_port"]
Expand Down

0 comments on commit be7fe3a

Please sign in to comment.