Skip to content

Commit

Permalink
Update aws.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored Sep 15, 2024
1 parent ed2065e commit 57ba7f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/machinery/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
import boto3
except ImportError:
sys.exit("Missed boto3 dependency: pip3 install boto3")
sys.exit("Missed boto3 dependency: poetry run pip3 install boto3")

from lib.cuckoo.common.abstracts import Machinery
from lib.cuckoo.common.config import Config
Expand All @@ -16,6 +16,7 @@
logging.getLogger("boto3").setLevel(logging.CRITICAL)
logging.getLogger("botocore").setLevel(logging.CRITICAL)
log = logging.getLogger(__name__)
cfg_resultserver_ip = Config().get("resultserver").get("ip")


class AWS(Machinery):
Expand Down Expand Up @@ -111,7 +112,7 @@ def _allocate_new_machine(self):
resultserver_ip = (
autoscale_options["resultserver_ip"]
if autoscale_options.get("resultserver_ip")
else Config().get("resultserver").get("ip")
else cfg_resultserver_ip
)
if autoscale_options.get("resultserver_port"):
resultserver_port = autoscale_options["resultserver_port"]
Expand Down

0 comments on commit 57ba7f1

Please sign in to comment.