Commit cfebc62b authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#71] warn about the error and carry on by now

parent d87f51aa
...@@ -440,7 +440,7 @@ sub _domain_create_from_base { ...@@ -440,7 +440,7 @@ sub _domain_create_from_base {
_xml_modify_video($xml); _xml_modify_video($xml);
$self->_xml_modify_usb($xml); $self->_xml_modify_usb($xml);
$self->_fix_slots(); $self->_fix_slots($xml);
open my $out,'>',"/var/tmp/$args{name}.xml" or die $!; open my $out,'>',"/var/tmp/$args{name}.xml" or die $!;
print $out $xml->toString(); print $out $xml->toString();
...@@ -713,8 +713,9 @@ sub _fix_slots { ...@@ -713,8 +713,9 @@ sub _fix_slots {
next if $node->nodeName ne 'address'; next if $node->nodeName ne 'address';
my $slot = $node->getAttribute('slot'); my $slot = $node->getAttribute('slot');
my $function = $node->getAttribute('slot'); my $function = $node->getAttribute('slot');
next if !defined $slot || !defined $function;
if ($slot{$slot}->{$function}) { if ($slot{$slot}->{$function}) {
die "Conflict of slot"; warn "Conflict of slot $slot , function $function";
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment