Join GitHub today
Fix gluster volume create force #79
Since we are allowing gluster volumes to be created on the root parition when lvm management is not being used, gluster volume create must have the force option added. Since the determination of the volume mount location happens in the compile phase, but the directory creation happens in the converge phase, the determination will always be false since the directory does not exist yet.
This moves the check and force directive into a lazy evaluation block so solve the problem.