```elsif node[:database][:ha][:storage][:mode] == "shared"```
and then have a ```else``` that keeps the ```raise "Invalid mode for HA storage!"``` (or use a ```case```)