summaryrefslogtreecommitdiff
diff options
-rw-r--r--overlord/ifacestate/handlers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/overlord/ifacestate/handlers.go b/overlord/ifacestate/handlers.go
index f7709a04c8..bd5f336af9 100644
--- a/overlord/ifacestate/handlers.go
+++ b/overlord/ifacestate/handlers.go
@@ -31,12 +31,13 @@ import (
"github.com/snapcore/snapd/snap"
)
-func (m *InterfaceManager) setupAffectedSnaps(task *state.Task, snapName string, affectedSnaps []string) error {
+func (m *InterfaceManager) setupAffectedSnaps(task *state.Task, affectingSnap string, affectedSnaps []string) error {
st := task.State()
// Setup security of the affected snaps.
for _, affectedSnapName := range affectedSnaps {
- if affectedSnapName == snapName {
+ // the snap that triggered the change needs to be skipped
+ if affectedSnapName == affectingSnap {
continue
}
var snapst snapstate.SnapState