Skip to content

Commit

Permalink
Merge branch 'feature/fix-disc' into 'develop'
Browse files Browse the repository at this point in the history
fix for use_elastic_disk naming

See merge request core/sevenbridges-python!108
  • Loading branch information
borislavd88 committed Jan 23, 2024
2 parents de7755e + 8a7da2d commit dbbc3ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sevenbridges/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ def _serialize_execution_settings(self, execution_settings):
'use_memoization',
self.execution_settings.get('use_memoization', None)
)
use_elastic_disc = execution_settings.get(
'use_elastic_disc',
self.execution_settings.get('use_elastic_disc', None)
use_elastic_disk = execution_settings.get(
'use_elastic_disk',
self.execution_settings.get('use_elastic_disk', None)
)
serialized_es_mapping = {
'instance_type': instance_type,
'max_parallel_instances': max_parallel_instances,
'use_memoization': use_memoization,
'use_elastic_disc': use_elastic_disc
'use_elastic_disk': use_elastic_disk
}
serialized_es = dict()
for key, value in serialized_es_mapping.items():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_create_task(api, given, verifier, run):
'instance_type': generator.name(),
'max_parallel_instances': 1,
'use_memoization': True,
'use_elastic_disc': True
'use_elastic_disk': True
}
given.task.can_be_created(
batch_by=batch_by, batch_input='FastQC', app=app_id, project=project.id
Expand Down

0 comments on commit dbbc3ed

Please sign in to comment.