Skip to content

Commit

Permalink
EDGECLOUD-4461: Orange VMpool cloudlet fail to add few VM's to VMpool
Browse files Browse the repository at this point in the history
  • Loading branch information
ashxjain committed Feb 25, 2021
1 parent fcc4ac0 commit 352c1d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crm-platforms/vmpool/vmpool-vmspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ func getFlavorBasedVM(ctx context.Context, vmList []edgeproto.VM, vmSpec *edgepr
cli := edgeproto.CloudletInfo{}
cli.Flavors = []*edgeproto.FlavorInfo{}
for _, newVM := range vmList {
if newVM.Flavor == nil {
continue
}
cli.Flavors = append(cli.Flavors, newVM.Flavor)
}
vmFlavorSpec, err := vmspec.GetVMSpec(ctx, vmSpec.Flavor, cli, nil)
Expand Down

0 comments on commit 352c1d7

Please sign in to comment.