Skip to content

Commit 545a5fa

Browse files
committed
fixed the slice_id
1 parent db72faf commit 545a5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabric_cf/orchestrator/swagger_server/response/slices_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def slices_create_post(body, slice_name, ssh_key, lease_end_time): # noqa: E501
5353
response.value = value
5454
success_counter.labels(POST_METHOD, SLICES_CREATE_PATH).inc()
5555
from fabric_cf.orchestrator.core.response_builder import ResponseBuilder
56-
slice_id = value[0][ResponseBuilder.PROP_SLICE_ID]
56+
slice_id = value[ResponseBuilder.RESPONSE_RESERVATIONS][0][ResponseBuilder.PROP_SLICE_ID]
5757
logger.info(f"Slice {slice_id} created for user: {email}")
5858
return response
5959
except OrchestratorException as e:

0 commit comments

Comments
 (0)