File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/com/google/jenkins/plugins/computeengine Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public class InstanceConfiguration implements Describable<InstanceConfiguration>
132132 private NetworkInterfaceIpStackMode networkInterfaceIpStackMode ;
133133
134134 @ Deprecated
135- private boolean externalAddress ;
135+ private Boolean externalAddress ;
136136
137137 private boolean useInternalAddress ;
138138 private boolean ignoreProxy ;
@@ -353,7 +353,10 @@ public ComputeEngineInstance provision() throws IOException {
353353 /** Initializes transient properties */
354354 protected Object readResolve () {
355355 labelSet = Label .parse (labels );
356- this .networkInterfaceIpStackMode = new NetworkInterfaceSingleStack (externalAddress );
356+ if (externalAddress != null ) {
357+ this .networkInterfaceIpStackMode = new NetworkInterfaceSingleStack (externalAddress );
358+ this .externalAddress = null ;
359+ }
357360 return this ;
358361 }
359362
You can’t perform that action at this time.
0 commit comments