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

Commit

Permalink
Add null check for snapshot identifier (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju authored Jul 6, 2018
1 parent 0a7391d commit 56cfbbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

group=com.nike
artifactId=cerberus-lifecycle-cli
version=4.6.1
version=4.6.2
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ private static List<String> getCreateDatabaseCommandArgs(EnvironmentConfig confi
args.addOption(CreateDatabaseCommand.INSTANCE_CLASS_LONG_ARG,
config.getPrimaryRegionConfig().getRds().get().getSize());

args.addOption(CreateDatabaseCommand.RESTORE_FROM_SNAPSHOT,
config.getPrimaryRegionConfig().getRds().get().getDbClusterIdentifier());
String snapshotIdentifier = config.getPrimaryRegionConfig().getRds().get().getDbClusterIdentifier();
if (StringUtils.isNotBlank(snapshotIdentifier)) {
args.addOption(CreateDatabaseCommand.RESTORE_FROM_SNAPSHOT, snapshotIdentifier);
}
}
args.addAll(getGlobalTags(config));
return args.build();
Expand Down

0 comments on commit 56cfbbb

Please sign in to comment.