Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void addNewSlaveInstances(List<AwsGroupInstance> elastigroupInstances) {
Boolean isSlaveExist = isSlaveExistForInstance(instance);

if (isSlaveExist == false) {
LOGGER.info(String.format("Instance: %s of group: %s doesn't have slave , adding new one",
LOGGER.info(String.format("Instance: %s of group: %s doesn't have slave, adding new one",
JsonMapper.toJson(instance), groupId));
addSpotinstSlave(instance);
}
Expand Down Expand Up @@ -311,7 +311,7 @@ private Boolean isSlaveExistForInstance(AwsGroupInstance instance) {

String instanceId = instance.getInstanceId();
if (instanceId != null) {
LOGGER.info(String.format("Checking if slave exist for instance id: %s", instanceId));
LOGGER.info(String.format("Checking if slave exists for instance id: %s", instanceId));

node = Jenkins.getInstance().getNode(instanceId);

Expand All @@ -323,7 +323,7 @@ private Boolean isSlaveExistForInstance(AwsGroupInstance instance) {

String spotRequestId = instance.getSpotInstanceRequestId();
if (retVal == false && spotRequestId != null) {
LOGGER.info(String.format("Checking if slave exist for spot request id: %s", spotRequestId));
LOGGER.info(String.format("Checking if slave exists for spot request id: %s", spotRequestId));

node = Jenkins.getInstance().getNode(spotRequestId);

Expand Down