Skip to content

Commit

Permalink
use correct path to calculate ephemeral disks size
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Mar 1, 2019
1 parent 8926608 commit 705fa3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/virt-launcher/virtwrap/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (l *LibvirtDomainManager) asyncMigrate(vmi *v1.VirtualMachineInstance) {
}

func getVMIEphemeralDisksTotalSize() *resource.Quantity {
var baseDir = "/var/run/libvirt/kubevirt-ephemeral-disk"
var baseDir = "/var/run/kubevirt-ephemeral-disks/"
totalSize := int64(0)
err := filepath.Walk(baseDir, func(path string, f os.FileInfo, err error) error {
if !f.IsDir() {
Expand Down

0 comments on commit 705fa3c

Please sign in to comment.