Skip to content

Commit 7e5274f

Browse files
anders-elastisysalexandrevilain
authored andcommitted
Update controllers/openstackcluster_controller.go
Co-authored-by: Alexandre Vilain <[email protected]>
1 parent ed3ceb2 commit 7e5274f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/openstackcluster_controller.go

Lines changed: 1 addition & 1 deletion
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)