diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 2102a6ba7..6c4b49ad0 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -1916,6 +1916,15 @@ sub setFINALattrs } # get the data type definition from Schema.pm + + if (!$::FILEATTRS{$objname}{objtype}) { + my $rsp; + $rsp->{data}->[0] = "\nNo objtype value was specified for \'$objname\'. Cannot create object definition.\n"; + xCAT::MsgUtils->message("E", $rsp, $::callback); + $error = 1; + next; + } + my $datatype = $xCAT::Schema::defspec{$::FILEATTRS{$objname}{objtype}}; my @list;