engineyard / eydr

EY Disaster Recovery Recipes (Unsupported)
http://www.engineyard.com
3 stars 3 forks source link

Fix regular expression syntax #11

Closed tmiller closed 6 years ago

tmiller commented 7 years ago

This code is failing because [0..9] matches the characters '0', '.', and '9'. This breaks when the stack name is 'mysql5_5', because it tries to load 'eydr::mysql5_5_failover' instead of 'eydr::mysql_failover'.

Change the regular expression to be [0-9] which correctly matches the numbers 0 through 9. It will properly split the name of the recipe and correctly load 'eydr::mysql_failover'