Skip to content

Commit d0bd8c6

Browse files
committed
o/ifacestate: use consistent variable name for reloaded connections slice
1 parent 3faf92e commit d0bd8c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

overlord/ifacestate/handlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func (m *InterfaceManager) setupProfilesForAppSet(
395395
st := task.State()
396396

397397
snapName := appSet.InstanceName()
398-
disconnectedSnaps, affectedConnections, err := m.refreshAppSetConnections(task, appSet)
398+
disconnectedSnaps, reloadedConns, err := m.refreshAppSetConnections(task, appSet)
399399
if err != nil {
400400
return nil, err
401401
}
@@ -409,7 +409,7 @@ func (m *InterfaceManager) setupProfilesForAppSet(
409409
snapsWithConnectedSlots := make(map[string]bool)
410410
newConnectedSnaps := make(map[string]bool)
411411
// Identify affected snaps on either side of the connection.
412-
for _, connID := range affectedConnections {
412+
for _, connID := range reloadedConns {
413413
connRef, err := interfaces.ParseConnRef(connID)
414414
if err != nil {
415415
return nil, fmt.Errorf("internal error: cannot parse existing connection: %w", err)

0 commit comments

Comments
 (0)