Fix sort -u ordering so that mktoolscenter does not report the same MT for two different models

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9001 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-03-04 21:11:27 +00:00
parent 6663679a5b
commit 1f080407cf

View File

@ -177,7 +177,7 @@ my $machines;
if ($surrogate eq 0) {
$instroot = `gettab key=installdir site.value`;
my $nodes = `$nodels|tr '\n' ','`;
$machines = `$nodels $nodes vpd.mtm |cut -f2 -d:|sort -u|cut -b2-5`;
$machines = `$nodels $nodes vpd.mtm |cut -f2 -d:|cut -b2-5|sort -u`;
} else {
$instroot = question("What is the installdir?","/install",'');
$machines = question("What is the list of machine types?","7947",'');