Skip to content

Commit a12c44c

Browse files
anders-elastisysalexandrevilain
authored and
k8s-infra-cherrypick-robot
committed
Update controllers/openstackcluster_controller.go
Co-authored-by: Alexandre Vilain <[email protected]>
1 parent 2946173 commit a12c44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/openstackcluster_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (r *OpenStackClusterReconciler) deleteBastion(ctx context.Context, scope *s
253253
if openStackCluster.Status.Bastion != nil && openStackCluster.Status.Bastion.FloatingIP != "" {
254254
statusFloatingIP = &openStackCluster.Status.Bastion.FloatingIP
255255
}
256-
if openStackCluster.Spec.Bastion.FloatingIP != nil {
256+
if openStackCluster.Spec.Bastion != nil && openStackCluster.Spec.Bastion.FloatingIP != nil {
257257
specFloatingIP = openStackCluster.Spec.Bastion.FloatingIP
258258
}
259259

0 commit comments

Comments
 (0)