Skip to content

Commit

Permalink
Merge pull request #144 from hadfl/emu_cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it authored Nov 11, 2023
2 parents 11448ca + 56f97f6 commit 3e0c843
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Zadm/Schema/Emu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use Mojo::Base 'Zadm::Schema::KVM', -signatures;
my $SCHEMA;
has schema => sub($self) {
my $kvmschema = $self->SUPER::schema;
# we need to drop these parent entries since merging would result in checking parent validators too;
# the additional options from the emu brand would fail the check from the parent
delete $kvmschema->{$_} for qw(cpu);

my $dp = Data::Processor->new($kvmschema);
my $ec = $dp->merge_schema($self->$SCHEMA);
Expand Down

0 comments on commit 3e0c843

Please sign in to comment.