Inventory Script Bug Fix (#5551)
* Added additional logging around line causing error * add logging for read of spec dir * removed extra logging and added check to test if item is dir before trying a dir read
This commit is contained in:
Родитель
b753293679
Коммит
048ecb9c84
|
@ -84,8 +84,11 @@ async function getServicesFromSpecRepo(packages: PackageList): Promise<PackageLi
|
|||
const serviceName = serviceNameMap[serviceSpecDir] === undefined ? serviceSpecDir : serviceNameMap[serviceSpecDir];
|
||||
// skip service api spec if it's in the list of services to hide
|
||||
if (servicesToHide[serviceName]) continue;
|
||||
// test if service spec dir is a dir, if not move on.
|
||||
if (!fs.lstatSync(path.join(specsDirPath, serviceSpecDir)).isDirectory()) continue;
|
||||
// list of plane dirs in service spec dir, should be either data-plane and/or resource-manager
|
||||
const planeSpecDirs = fs.readdirSync(path.join(specsDirPath, serviceSpecDir));
|
||||
let planeSpecDirs: string[] = fs.readdirSync(path.join(specsDirPath, serviceSpecDir));
|
||||
// loop through plane dirs in the service spec dir
|
||||
for (let planeSpecDir of planeSpecDirs) {
|
||||
// determine plane and SDK name
|
||||
let plane: Plane = "UNABLE TO BE DETERMINED";
|
||||
|
|
Загрузка…
Ссылка в новой задаче