diff --git a/cli/cloud/cloudcmd/validators.go b/cli/cloud/cloudcmd/validators.go index ad70aadb6..2127faf44 100644 --- a/cli/cloud/cloudcmd/validators.go +++ b/cli/cloud/cloudcmd/validators.go @@ -80,7 +80,7 @@ func (v *Validators) setPCRs(config *config.Config) error { } v.pcrs = azurePCRs case cloudprovider.QEMU: - qemuPCRs := *config.Provider.QEMU.PCRs + qemuPCRs := *config.Provider.QEMU.Measurements if err := v.checkPCRs(qemuPCRs); err != nil { return err } diff --git a/cli/cloud/cloudcmd/validators_test.go b/cli/cloud/cloudcmd/validators_test.go index 913e2e959..0a0de22e5 100644 --- a/cli/cloud/cloudcmd/validators_test.go +++ b/cli/cloud/cloudcmd/validators_test.go @@ -77,7 +77,7 @@ func TestNewValidators(t *testing.T) { } if tc.provider == cloudprovider.QEMU { measurements := config.Measurements(tc.pcrs) - conf.Provider.QEMU = &config.QEMUConfig{PCRs: &measurements} + conf.Provider.QEMU = &config.QEMUConfig{Measurements: &measurements} } validators, err := NewValidators(tc.provider, conf) diff --git a/internal/config/config.go b/internal/config/config.go index 59e33f5f2..bc9cb8e2d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -198,7 +198,7 @@ func Default() *Config { Measurements: &gcpPCRs, }, QEMU: &QEMUConfig{ - PCRs: &qemuPCRs, + Measurements: &qemuPCRs, }, }, } @@ -260,7 +260,7 @@ type GCPConfig struct { } type QEMUConfig struct { - PCRs *Measurements `yaml:"pcrs,omitempty"` + Measurements *Measurements `yaml:"measurements,omitempty"` } // intPtr returns a pointer to the copied value of in.