Commit 083562c6 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: only create 'default' resource_class if it was not actually stored in the database

parent ade48c55
...@@ -373,8 +373,8 @@ sub run { ...@@ -373,8 +373,8 @@ sub run {
); );
} }
} }
unless($seen_resource_name{'default'}) { unless(my $default_rc = $resource_class_adaptor->fetch_by_name('default')) {
warn "\tNB:You don't seem to have 'default' as one of the resource classes (forgot to inherit from SUPER::resource_classes ?) - creating one for you\n"; warn "\tNB:'default' resource class is not in the database (did you forget to inherit from SUPER::resource_classes ?) - creating it for you\n";
$resource_class_adaptor->create_new(-NAME => 'default'); $resource_class_adaptor->create_new(-NAME => 'default');
} }
warn "Done.\n\n"; warn "Done.\n\n";
......
Markdown is supported
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