-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:
parent
3f37606a4d
commit
b79724199c
@ -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>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user