Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for presence of Fact gluster_volume_list
On a node with no pre-existing Gluster volume, this module will not populate the Fact 'gluster_volume_list' there for we should check if the current volume already exists ONLY if the nodes already has some volumes. Work on conditional statement readability Puppet DSL doesn't allow variable re-assignment Of course! So reformating conditional statement to make everything checked within a single 'if'. Adding checks for setup from scratch As discussed in voxpupuli#24 (comment) extra check added to handle creation of volumes from scratch on a Gluster pool. Added check for undef fact Ensure first run doesn't throw an error because Fact for gluster_peer_list may return as undef. Related to voxpupuli#23 Handle different state/member in pool Adding check to enable creation of pool and volume from scratch by the module. voxpupuli#23 Removing blocking check for dry run Fact $::gluster_volume_list presence should not be checked on L 105 as it may be undef on very first run in a pool without pre-existing volumes Correcting typo in var ref and pattern in regsubst Prevent error being thrown by pattern in regsubst() function. As explained and corrected in voxpupuli#31
- Loading branch information