Skip to content

Commit

Permalink
Remove iface arg
Browse files Browse the repository at this point in the history
  • Loading branch information
MalloZup committed Sep 19, 2018
1 parent 59c15c3 commit 4c404ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libvirt/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func domainWaitForLeases(domain *libvirt.Domain, waitForLeases []*libvirtxml.Dom

// check we have IPs for all the interfaces we are waiting for
for _, iface := range waitForLeases {
found, ignore, err := domainIfaceHasAddress(*domain, *iface, domainDef, virConn, rd)
found, ignore, err := domainIfaceHasAddress(*domain, domainDef, virConn, rd)
if err != nil {
return false, "", err
}
Expand Down Expand Up @@ -78,8 +78,7 @@ func domainWaitForLeases(domain *libvirt.Domain, waitForLeases []*libvirtxml.Dom
return err
}

func domainIfaceHasAddress(domain libvirt.Domain, iface libvirtxml.DomainInterface,
domainDef libvirtxml.Domain, virConn *libvirt.Connect, rd *schema.ResourceData) (found bool, ignore bool, err error) {
func domainIfaceHasAddress(domain libvirt.Domain, domainDef libvirtxml.Domain, virConn *libvirt.Connect, rd *schema.ResourceData) (found bool, ignore bool, err error) {

ifacesWithAddr, err := domainGetIfacesInfo(domain, domainDef, virConn, rd)
if err != nil {
Expand Down

0 comments on commit 4c404ee

Please sign in to comment.