Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 9acbdf5

Browse files
committed
Fix reversed logic in can run method
1 parent 1430104 commit 9acbdf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/nike/cerberus/operation/core/CreateCerberusBackupOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private String provisionKmsCmkForBackupRegion(String region) {
378378

379379
@Override
380380
public boolean isRunnable(CreateCerberusBackupCommand command) {
381-
if (!configStore.getBackupAdminIamPrincipals().isEmpty()) {
381+
if (configStore.getBackupAdminIamPrincipals().isEmpty()) {
382382
log.error("Backup Admin Principals have not been set please run " + SetBackupAdminPrincipalsCommand.COMMAND_NAME);
383383
return false;
384384
}

0 commit comments

Comments
 (0)