diff --git a/xCAT-server-2.0/lib/xcat/plugins/credentials.pm b/xCAT-server-2.0/lib/xcat/plugins/credentials.pm index 7fac63d42..10b6a135d 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/credentials.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/credentials.pm @@ -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>;