diff options
| author | Michael Vogt <mvo@ubuntu.com> | 2016-07-12 14:53:49 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@ubuntu.com> | 2016-07-12 14:53:49 +0200 |
| commit | fa4ae877e8f14c395c6a1f9b164dc226d5cfea62 (patch) | |
| tree | 01cae3dd1adedc829e45280b56811f5bb3db0f06 | |
| parent | 751c366179d5675fd688c250b16f770c6747866f (diff) | |
improve namingrefactor/no-more-candidate
| -rw-r--r-- | overlord/ifacestate/handlers.go | 5 |
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 |
