-Fix syntax error in esx plugin

-Suppress warning in Common.pm library


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6132 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-05-15 01:32:13 +00:00
parent cb1501c3c1
commit 33c6e7b5d2
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ package xCAT::Common;
use File::stat;
use File::Copy;
use Thread qw/yield/;
BEGIN
{
@ -42,7 +43,7 @@ sub forward_data {
close($rfh);
}
}
yield; #Try to avoid useless iterations as much as possible
yield(); #Try to avoid useless iterations as much as possible
return $rc;
}

View File

@ -2277,7 +2277,7 @@ sub makecustomizedmod {
close($shadow);
if (-e "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking") {
mkpath($tempdir."/etc/vmware/init/init.d");
copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking"
copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking");
}
#TODO: auto-enable ssh and request boot-time customization rather than on-demand?
require Cwd;