Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Bug fix/resource vif #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bug-fix: device_order inaccurate
thebinary committed Oct 4, 2018
commit 377ffc28318704bbc924358e82430f080d91f74b
3 changes: 3 additions & 0 deletions xenserver/resource_vm.go
Original file line number Diff line number Diff line change
@@ -636,6 +636,9 @@ func resourceVMUpdate(d *schema.ResourceData, m interface{}) error {
if err := c.client.VIF.Destroy(c.session, vifToRemove.VIFRef); err != nil {
return err
}

// Decrement VIFCount after removal success
vm.VIFCount--
}
}
}