MCPcopy
hub / github.com/aquasecurity/cloudsploit / checkRequiredKeys

Function checkRequiredKeys

index.js:125–132  ·  view source on GitHub ↗
(obj, keys)

Source from the content-addressed store, hash-verified

123}
124
125function checkRequiredKeys(obj, keys) {
126 keys.forEach(function(key){
127 if (!obj[key] || !obj[key].length) {
128 console.error(`ERROR: The credential config did not contain a valid value for: ${key}`);
129 process.exit(1);
130 }
131 });
132}
133
134if (config.credentials.aws.credential_file && (!settings.cloud || (settings.cloud == 'aws'))) {
135 settings.cloud = 'aws';

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected