From 73fb3d17eefacad194351148b7bdb1b9068ebb49 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 1 Feb 2010 09:34:50 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/SINV.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perl-xCAT/xCAT/SINV.pm b/perl-xCAT/xCAT/SINV.pm index 6c39ffa8a..f982cdff7 100644 --- a/perl-xCAT/xCAT/SINV.pm +++ b/perl-xCAT/xCAT/SINV.pm @@ -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 #