Skip to content

Commit 213eaa4

Browse files
committed
vz: silence Ignoring: vmType vz: [CPUType] when the value is empty
Signed-off-by: Akihiro Suda <[email protected]>
1 parent ffd57dc commit 213eaa4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/vz/vz_driver_darwin.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (l *LimaVzDriver) Validate() error {
5151
"Arch",
5252
"Images",
5353
"CPUs",
54+
"CPUType",
5455
"Memory",
5556
"Disk",
5657
"Mounts",
@@ -75,6 +76,12 @@ func (l *LimaVzDriver) Validate() error {
7576
logrus.Warnf("Ignoring: vmType %s: %+v", *l.Yaml.VMType, unknown)
7677
}
7778

79+
for k, v := range l.Yaml.CPUType {
80+
if v != "" {
81+
logrus.Warnf("Ignoring: vmType %s: cpuType[%q]: %q", *l.Yaml.VMType, k, v)
82+
}
83+
}
84+
7885
for i, image := range l.Yaml.Images {
7986
if unknown := reflectutil.UnknownNonEmptyFields(image, "File"); len(unknown) > 0 {
8087
logrus.Warnf("Ignoring: vmType %s: images[%d]: %+v", *l.Yaml.VMType, i, unknown)

0 commit comments

Comments
 (0)