-Add cfgloc retrieval to credentials plugin

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-16 13:10:57 +00:00
parent 3f37606a4d
commit b79724199c

View File

@ -113,6 +113,14 @@ sub process_request
next;
}
$tfilename = "/root/.xcat/client-cred.pem";
} elsif (/xcat_cfgloc/) {
unless (-r "/etc/xcat/cfgloc") {
push @{$rsp->{'error'}},"Unable to read xCAT database location";
next;
}
$tfilename = "/etc/xcat/cfglog";
} else {
next;
}
open($tmpfile,$tfilename);
@filecontent=<$tmpfile>;