fix putting out the no support for SQLite all the time, just put out if processing files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -99,11 +99,6 @@ my @sqlfilelist = xCAT::Table->get_filelist($directory, \@filearray, "sql"); | ||||
|  | ||||
| # determine database | ||||
| my $xcatcfg = xCAT::Table->get_xcatcfg(); | ||||
| if ($xcatcfg =~ /^SQLite:/) | ||||
| { | ||||
|     xCAT::MsgUtils->message("SE", | ||||
|       "The runsqlcmd does not support the SQLite database."); | ||||
| } | ||||
| foreach my $file (@sqlfilelist) | ||||
| { | ||||
|     if ($xcatcfg =~ /^DB2:/) | ||||
| @@ -121,7 +116,8 @@ foreach my $file (@sqlfilelist) | ||||
|     if ($xcatcfg =~ /^SQLite:/) | ||||
|     { | ||||
|         # not supported but will leave routine in case we change our mind  | ||||
|         &runsqlitecmd($file,$xcatcfg); | ||||
|         xCAT::MsgUtils->message("SE", "The runsqlcmd does not support the SQLite database."); | ||||
|         #&runsqlitecmd($file,$xcatcfg); | ||||
|         exit 1; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user