Skip to content

Commit 4a2a469

Browse files
committed
changes for slice state and al2s sliver.local_name
1 parent 9801cc3 commit 4a2a469

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fabric_cf/actor/core/kernel/slice_state_machine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def transition_slice(self, *, operation: SliceOperation, reservations: Reservati
323323
ReservationStates.Failed, ReservationStates.CloseFail):
324324
self.state = SliceState.Closing
325325

326-
if self.state in [SliceState.AllocatedOK, SliceState.AllocatedError]:
326+
elif self.state in [SliceState.AllocatedOK, SliceState.AllocatedError]:
327327
if not bins.has_state_other_than(ReservationStates.Active, ReservationStates.Closed,
328328
ReservationStates.CloseFail):
329329
if not has_error:

fabric_cf/orchestrator/core/orchestrator_slice_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def __build_ns_sliver_reservation(self, *, slice_graph: ABCASMPropertyGraph, nod
333333
if sliver.labels is None:
334334
sliver.labels = Labels()
335335
sliver.labels = Labels.update(sliver.labels,
336-
local_name=f"{self.slice_obj.get_slice_name()}-{ifs.peer_labels.account_id}")
336+
local_name=f"{self.slice_obj.get_slice_name()}")
337337

338338
# Generate reservation for the sliver
339339
reservation = self.reservation_converter.generate_reservation(sliver=sliver,

0 commit comments

Comments
 (0)