use get_image_name routine in xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6e0675c8eb
commit
a88662b894
@ -3652,21 +3652,7 @@ sub parse_and_run_dsh
|
||||
# we will use the create the nostname from the directory
|
||||
# for the hostname in the output
|
||||
my $path = $options{'rootimg'};
|
||||
if (xCAT::Utils->isLinux())
|
||||
{
|
||||
my @fields = split('/', $path);
|
||||
$imagename .= $fields[5];
|
||||
$imagename .= ".";
|
||||
$imagename .= $fields[3];
|
||||
$imagename .= ".";
|
||||
$imagename .= $fields[4];
|
||||
}
|
||||
else
|
||||
{ # AIX
|
||||
my @fields = split('/', $path);
|
||||
my $name = pop @fields;
|
||||
$imagename = $name;
|
||||
}
|
||||
$imagename= xCAT::Utils->get_image_name($path);
|
||||
if (defined(@$nodes))
|
||||
{
|
||||
my $rsp = ();
|
||||
|
Loading…
Reference in New Issue
Block a user