We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee9cf5 commit 949c76fCopy full SHA for 949c76f
1 file changed
packages/configuration-screen/src/utils/configurationFileHelper.ts
@@ -157,10 +157,12 @@ export async function getCurrentIndexName(service: SplunkService): Promise<strin
157
);
158
configurationStanzaAccessor = await promisify(configurationStanzaAccessor.fetch)();
159
160
- let currentIndex = 'main';
161
- if ('index' in configurationStanzaAccessor._properties) {
162
- currentIndex = configurationStanzaAccessor._properties.index;
+ if (
+ !('index' in configurationStanzaAccessor._properties) ||
+ configurationStanzaAccessor._properties.index === 'default'
163
+ ) {
164
+ return 'main';
165
}
166
- return currentIndex;
167
+ return configurationStanzaAccessor._properties.index;
168
0 commit comments