Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
[EC2] Failed spot request logs nothing. #33
Browse files Browse the repository at this point in the history
  • Loading branch information
posidron committed Aug 27, 2018
1 parent 2e00cea commit 287bad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion laniakea/__version__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'laniakea'
__version__ = '1.15.0'
__version__ = '1.16.0'
__license__ = 'MPL 2.0'
__description__ = 'A utility which manages cloud instances and aids in setting up a fuzzing cluster.'
__keywords__ = 'cluster packet ec2 azure fuzzing'
Expand Down
3 changes: 3 additions & 0 deletions laniakea/core/providers/ec2/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ def create_spot(self,

fulfilled = []
for idx, instance in enumerate(new_instances):
if instance.status.code == "bad-parameters":
logging.error('Spot request for "%s" failed due to bad parameters.', instance.id)
self.cancel_spot_requests([instance.id])
if instance is not None:
fulfilled.append(idx)
if isinstance(instance, boto.ec2.instance.Instance):
Expand Down

0 comments on commit 287bad0

Please sign in to comment.