Skip to content

Commit 56d1634

Browse files
authored
Update aws/aws-mcp-cli-commands/src/main/java/software/amazon/smithy/java/aws/mcp/cli/commands/AddAwsServiceBundle.java
1 parent 3f2663b commit 56d1634

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

aws/aws-mcp-cli-commands/src/main/java/software/amazon/smithy/java/aws/mcp/cli/commands/AddAwsServiceBundle.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ protected CliBundle getNewToolConfig() {
4545
if (allowedApis != null) {
4646
// User explicitly specified allowed APIs - use only those
4747
bundleBuilder.exposedOperations(allowedApis);
48-
} else if (readOnlyApis == null || readOnlyApis) {
48+
}
49+
50+
if (readOnlyApis == null || readOnlyApis) {
4951
//If nothing is specified then default to only readOnlyOperations.
5052
bundleBuilder.readOnlyOperations();
5153
} else {

0 commit comments

Comments
 (0)