summaryrefslogtreecommitdiff
diff options
authorMichael Vogt <mvo@ubuntu.com>2016-07-12 14:53:49 +0200
committerMichael Vogt <mvo@ubuntu.com>2016-07-12 14:53:49 +0200
commitfa4ae877e8f14c395c6a1f9b164dc226d5cfea62 (patch)
tree01cae3dd1adedc829e45280b56811f5bb3db0f06
parent751c366179d5675fd688c250b16f770c6747866f (diff)
-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