Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit ccae423

Browse files
authored
Fixing creating repositories in other account's domain. (#45)
1 parent 4554ea1 commit ccae423

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws-codeartifact-repository/src/main/java/software/amazon/codeartifact/repository/CreateHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private ProgressEvent<ResourceModel, CallbackContext> createRepository(
6363
}
6464

6565
private boolean hasReadOnlyProperties(final ResourceModel model) {
66-
return model.getAdministratorAccount() != null || model.getName() != null;
66+
return model.getName() != null;
6767
}
6868

6969
private boolean isStabilized(

aws-codeartifact-repository/src/test/java/software/amazon/codeartifact/repository/CreateHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public void handleRequest_invalidRequest_readOnlyProperties() {
544544

545545
final ResourceModel model = ResourceModel.builder()
546546
.domainName(DOMAIN_NAME)
547-
.administratorAccount("12345")
547+
.name(REPO_NAME)
548548
.repositoryName(REPO_NAME)
549549
.build();
550550

0 commit comments

Comments
 (0)