Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1527

stacktrace when creating a module with no name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.14.1
    • Component/s: None
    • Template:
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      "pdk new module" will now display an error message if used with "--skip-interview" and not provided with a module name.
    • QA Risk Assessment:
      Needs Assessment

      Description

      david@davids:~/tmp$ pdk new module --skip-interview 
      pdk (INFO): Creating new module: 
      /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/pdk-1.14.0/lib/pdk/generate/module.rb:34:in `expand_path': no implicit conversion of nil into String (TypeError)
      	from /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/pdk-1.14.0/lib/pdk/generate/module.rb:34:in `invoke'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/pdk-1.14.0/lib/pdk/cli/new/module.rb:43:in `block (2 levels) in <module:CLI>'
      

      expected behavior: ask for module name, or fail with useful error message

        Attachments

          Activity

            People

            Assignee:
            tim.sharpe Tim Sharpe
            Reporter:
            david.schmitt David Schmitt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support