diff options
author | Alvaro Saurin <alvaro.saurin@gmail.com> | 2017-08-21 18:23:13 +0200 |
---|---|---|
committer | Alvaro <alvaro.saurin@gmail.com> | 2017-11-27 13:04:37 +0100 |
commit | 39b7567db8477cebf98ca7ff225c2a356b42bd98 (patch) | |
tree | 9d474ca7643c0763710fd827ea22813f66d0d43d /libvirt/resource_libvirt_domain.go | |
parent | a4e19162a53ec97402eba79aa1a5b28b55743cf3 (diff) | |
download | terraform-provider-libvirt-39b7567db8477cebf98ca7ff225c2a356b42bd98.tar terraform-provider-libvirt-39b7567db8477cebf98ca7ff225c2a356b42bd98.tar.gz |
Retry the query about interfaces to the qemu-agent
Diffstat (limited to 'libvirt/resource_libvirt_domain.go')
-rw-r--r-- | libvirt/resource_libvirt_domain.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index b5d0fb6d..25829f35 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -1300,6 +1300,7 @@ func getDomainInterfaces(domain libvirt.Domain) ([]libvirt.DomainInterface, erro // get all the interfaces using the qemu-agent, this includes also // interfaces that are not attached to networks managed by libvirt // (eg. bridges, macvtap,...) + log.Print("[DEBUG] fetching networking interfaces using qemu-agent") interfaces := getDomainInterfacesViaQemuAgent(&domain, true) if len(interfaces) > 0 { // the agent will always return all the interfaces, both the @@ -1308,9 +1309,8 @@ func getDomainInterfaces(domain libvirt.Domain) ([]libvirt.DomainInterface, erro return interfaces, nil } - log.Print("[DEBUG] fetching networking interfaces using libvirt API") - // get all the interfaces attached to libvirt networks + log.Print("[DEBUG] fetching networking interfaces using libvirt API") interfaces, err := domain.ListAllInterfaceAddresses(libvirt.DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE) if err != nil { switch err.(type) { |