relative path support for sinv

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-02-01 09:34:50 +00:00
parent ce36812204
commit 73fb3d17ee

View File

@ -156,6 +156,15 @@ sub parse_and_run_sinv
exit 1;
}
if ( exists( $options{template_path} ) && ($options{template_path} !~ /^\//) ) {#relative path
$options{template_path} = xCAT::Utils->full_path($options{template_path}, $request->{cwd}->[0]);
}
if ( exists( $options{output_file} ) && ($options{output_file} !~ /^\//) ) {#relative path
$options{output_file} = xCAT::Utils->full_path($options{output_file}, $request->{cwd}->[0]);
}
if ( exists( $options{sinv_cmd_file} ) && ($options{sinv_cmd_file} !~ /^\//) ) {#relative path
$options{sinv_cmd_file} = xCAT::Utils->full_path($options{sinv_cmd_file}, $request->{cwd}->[0]);
}
#
# Get Command to run
#