map() returns a map object iterable instead of a list in python3
This commit is contained in:
parent
57f4f4aa9b
commit
27095638d9
1 changed files with 1 additions and 1 deletions
|
|
@ -446,7 +446,7 @@ def test_describe_container_instances():
|
|||
|
||||
test_instance_arns.append(response['containerInstance']['containerInstanceArn'])
|
||||
|
||||
test_instance_ids = map((lambda x: x.split('/')[1]), test_instance_arns)
|
||||
test_instance_ids = list(map((lambda x: x.split('/')[1]), test_instance_arns))
|
||||
response = ecs_client.describe_container_instances(cluster=test_cluster_name, containerInstances=test_instance_ids)
|
||||
len(response['failures']).should.equal(0)
|
||||
len(response['containerInstances']).should.equal(instance_to_create)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue