-Fix syntax errors in Xen plugin patch previously applied

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2533 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-12-09 15:43:40 +00:00
parent 05b4df7c71
commit 767c656a0d

View File

@ -117,11 +117,11 @@ sub build_diskstruct {
if (defined $vmhash->{$node}->[0]->{storage}) {
my $disklocs=$vmhash->{$node}->[0]->{storage};
my @locations=split /\|/,$disklocs;
foreach $disk (@locations) {
foreach my $disk (@locations) {
#Setting default values of a virtual disk backed by a file at hd*.
$diskhash->{type} = 'file';
$diskhash->{device} = 'disk';
$diskhash->{target}->[dev] = hd.$suffixes[$suffidx];
$diskhash->{target}->{dev} = 'hd'.$suffixes[$suffidx];
my @disk_parts = split(/,/, $disk);
#Find host file and determine if it is a file or a block device.
@ -129,7 +129,7 @@ sub build_diskstruct {
$diskhash->{type}='block';
$diskhash->{source}->{dev} = substr($disk_parts[0], 4);
} else {
$diskhash->{source>->{file} = $disk_parts[0];
$diskhash->{source}->{file} = $disk_parts[0];
}
#See if there are any other options. If not, increment suffidx because the already determined device node was used.