Skip to content

Commit

Permalink
MacvtapBindMechanism.loadCachedInterface fix arg name
Browse files Browse the repository at this point in the history
I should have noticed this back in commit 5f3ecee. Much like
setCachedInterface, loadCachedInterface() a *pid* string, too.

Signed-off-by: Dan Kenigsberg <[email protected]>
  • Loading branch information
dankenigsberg committed Jan 20, 2021
1 parent c95d8a3 commit e17e28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/virt-launcher/virtwrap/network/podinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -1221,10 +1221,10 @@ func (m *MacvtapBindMechanism) decorateConfig() error {
return nil
}

func (m *MacvtapBindMechanism) loadCachedInterface(uid, name string) (bool, error) {
func (m *MacvtapBindMechanism) loadCachedInterface(pid, name string) (bool, error) {
var ifaceConfig api.Interface

isExist, err := readFromCachedFile(uid, name, interfaceCacheFile, &ifaceConfig)
isExist, err := readFromCachedFile(pid, name, interfaceCacheFile, &ifaceConfig)
if err != nil {
return false, err
}
Expand Down

0 comments on commit e17e28a

Please sign in to comment.