fix relative path problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5186 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4e5d693305
commit
ba3115b765
@ -156,13 +156,13 @@ sub parse_and_run_sinv
|
||||
exit 1;
|
||||
}
|
||||
|
||||
if ( exists( $options{template_path} ) && ($options{template_path} !~ /^\//) ) {#relative path
|
||||
if ( defined( $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
|
||||
if ( defined( $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
|
||||
if ( defined( $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]);
|
||||
}
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user