Skip to content

Commit e0e25d9

Browse files
Update controllers/openstackcluster_controller.go
Co-authored-by: Alexandre Vilain <alexandrevilain@users.noreply.github.com>
1 parent 074ff36 commit e0e25d9

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
@@ -254,7 +254,7 @@ func (r *OpenStackClusterReconciler) deleteBastion(ctx context.Context, scope *s
254254
if openStackCluster.Status.Bastion != nil && openStackCluster.Status.Bastion.FloatingIP != "" {
255255
statusFloatingIP = &openStackCluster.Status.Bastion.FloatingIP
256256
}
257-
if openStackCluster.Spec.Bastion.FloatingIP != nil {
257+
if openStackCluster.Spec.Bastion != nil && openStackCluster.Spec.Bastion.FloatingIP != nil {
258258
specFloatingIP = openStackCluster.Spec.Bastion.FloatingIP
259259
}
260260

0 commit comments

Comments
 (0)