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:
lissav 2008-10-27 16:08:14 +00:00
parent 6e0675c8eb
commit a88662b894

View File

@ -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 = ();