-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-58578] Force the setting of the private ip also for public subnet #387
Conversation
This should probably also be updated in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Is this unit testable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine to me. I haven't done any manual testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions but looks good overall
@@ -633,11 +633,12 @@ private void logProvisionInfo(String message) { | |||
} | |||
} | |||
|
|||
net.setAssociatePublicIpAddress(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
net.setAssociatePublicIpAddress(false); | |
net.setAssociatePublicIpAddress(getAssociatePublicIp()); |
Will allow you to remove the if
@@ -946,11 +947,12 @@ private void setupCustomDeviceMapping(List<BlockDeviceMapping> deviceMappings) { | |||
launchSpecification.setKeyName(keyPair.getKeyName()); | |||
launchSpecification.setInstanceType(type.toString()); | |||
|
|||
net.setAssociatePublicIpAddress(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
net.setAssociatePublicIpAddress(false); | |
net.setAssociatePublicIpAddress(getAssociatePublicIp()); |
Same here
Do you think this could be merged? |
JENKINS-58578 Force the setting of the private ip also for public subnet