diff --git a/lib/kubernetes-deploy/options_helper.rb b/lib/kubernetes-deploy/options_helper.rb index 51ca60435..f3130ed03 100644 --- a/lib/kubernetes-deploy/options_helper.rb +++ b/lib/kubernetes-deploy/options_helper.rb @@ -26,7 +26,7 @@ def default_template_dir(template_dir) template_dir = File.join("config", "deploy", ENV['ENVIRONMENT']) end - if template_dir.blank? + if !template_dir || template_dir.empty? raise OptionsError, "Template directory is unknown. " \ "Either specify --template-dir argument or set $ENVIRONMENT to use config/deploy/$ENVIRONMENT " \ "as a default path."