Skip to content

Commit aeb10cf

Browse files
Skip stack settings export when using a management token
1 parent 0f2d0f0 commit aeb10cf

File tree

1 file changed

+5
-1
lines changed
  • packages/contentstack-export/src/export/modules

1 file changed

+5
-1
lines changed

packages/contentstack-export/src/export/modules/stack.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ export default class ExportStack extends BaseClass {
3333
this.exportConfig.sourceStackName = stackData.name;
3434
}
3535
}
36-
await this.exportStackSettings();
36+
if (this.exportConfig.management_token) {
37+
log(this.exportConfig, 'Skipping stack settings export: Operation is not supported when using a management token.', 'info');
38+
} else {
39+
await this.exportStackSettings();
40+
}
3741
if (!this.exportConfig.preserveStackVersion && !this.exportConfig.hasOwnProperty('master_locale')) {
3842
//fetch master locale details
3943
return this.getLocales();

0 commit comments

Comments
 (0)