Skip to content

Commit

Permalink
Merge pull request #16 from reecetech/bugfix/volume-group
Browse files Browse the repository at this point in the history
(bugfix): Lack of volume group should not produce error
  • Loading branch information
lasith-kg authored May 24, 2024
2 parents 85c521d + d3eda05 commit a1c22dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/lvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (lb *LinuxLvmBackend) SearchVolumeGroup(physicalVolume string) (*model.Volu
}
vgn := lb.lvmGraph.GetChildren(pvn, model.VolumeGroupKind)
if len(vgn) == 0 {
return nil, fmt.Errorf("🔴 %s: Physical volume has no volume group", physicalVolume)
return nil, nil
}
return &model.VolumeGroup{
Name: vgn[0].Name,
Expand Down

0 comments on commit a1c22dc

Please sign in to comment.