_.forEach(vault.auths, function (auth, name) { match = _.find(_.keys(vault.api.endpoints), _.matches('auth/' + name)); if (!match) { vault.api.mountEndpoints(vault.config, auth.type, name); } });
_.forEach(vault.mounts, function (mount, name) { match = _.find(_.keys(vault.api.endpoints), _.matches(name)); if (!match) { vault.api.mountEndpoints(vault.config, mount.type, name); } });