With PR #139 an option module_name was introduced to override the module name. This option is now mandatory, which I assume wasn't intended. This PR makes it optional.
Description:
Deploy module my_module without ?module_name:
"INFO -> Using Puppetfile '/etc/puppetlabs/code/environments/production/Puppetfile'
INFO -> Deploying module to /etc/puppetlabs/code/environments/production/modules/my_module
"
Actual result:
{"message":"Invalid module name"}
Explanation:
Matching for an invalid module name should only be done, when the option is given. Not giving the option, the variable overrideModule is an empty string, which does not match the RegEx, throwing the error.
With PR #139 an option
module_name
was introduced to override the module name. This option is now mandatory, which I assume wasn't intended. This PR makes it optional.Description: Deploy module
my_module
without?module_name
:Expected result:
Actual result:
Explanation: Matching for an invalid module name should only be done, when the option is given. Not giving the option, the variable
overrideModule
is an empty string, which does not match the RegEx, throwing the error.