2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-28 15:21:11 +00:00

Remove trailing spaces in file xCAT-server/lib/xcat/plugins/rmimage.pm

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent 85bc32e06e
commit 75b3d4c74a

View File

@@ -44,7 +44,7 @@ sub process_request {
my $imagename;
my $imagedir;
my $lock;
if (!xCAT::Utils->isLinux()) {
$callback->({ error => ["The rmimage command is only supported on Linux."], errorcode => [1] });
return;
@@ -178,7 +178,7 @@ sub process_request {
$callback->({ error => ["Image directory $imagedir does not exist"], errorcode => [1] });
return;
}
my $retcode;
($retcode,$lock)=xCAT::Utils->acquire_lock_imageop("$imagedir/rootimg");
@@ -197,10 +197,10 @@ sub process_request {
}
my @filestoremove = ("$imagedir/kernel", "$imagedir/initrd-stateless.gz", "$imagedir/initrd-statelite.gz");
my @rootimgtars=glob "$imagedir/rootimg.*";
my @rootimgtars=glob "$imagedir/rootimg.*";
push @filestoremove,@rootimgtars;
#unmount all the mount points under rootimg directory
#to avoid removing the directory/files on management node by mistake
#unmount all the mount points under rootimg directory
#to avoid removing the directory/files on management node by mistake
$realimagedir=realpath("$imagedir/rootimg");
my @mntptlist;
my $FILEHD=undef;