-Fix hosts plugins strict deviation

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-07-18 20:22:45 +00:00
parent e6d779fe5c
commit 2bbc51d240

View File

@ -1,5 +1,7 @@
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT_plugin::hosts;
use strict;
use warnings;
use xCAT::Table;
use Data::Dumper;
use File::Copy;
@ -54,6 +56,7 @@ sub process_request {
my $bakname = "/etc/hosts.xcatbak";
copy("/etc/hosts",$bakname);
}
my $rconf;
open($rconf,"/etc/hosts"); # Read file into memory
if ($rconf) {
while (<$rconf>) {