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

The cached version of the template url in the answer file can be out of sync with the actual template used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • PDK 1.3.2
    • None
    • Hide
      • Manually update the ~/.pdk/answers.json with a bad template-url entry. Try to generate a module and verify that you see a warning message, but the module successfully generates using the default template.
      Show
      Manually update the ~/.pdk/answers.json with a bad template-url entry. Try to generate a module and verify that you see a warning message, but the module successfully generates using the default template.
    • Puppet Developer Experience
    • Needs Assessment
    • Known Issue
    • When creating or converting a module, and there is a saved template-url value in the answers file, the PDK will now check that the repository specified in the template-url answer exists and fall back to using the default template if it doesn't.
    • Needs Assessment

    Description

      The cached answer file is no longer syncing properly with the actual template used with the pdk.

      Steps to replicate:

      vim ~/.pdk/cache/answers.json
      

      Run the above command and change the template url to the old template repo like so:
      "template-url": "https://github.com/puppetlabs/pdk-module-template",

      Then run your local pdk against a module using the 'convert' command.

      Check the details within metadata.json and you can see the values won't match the template actually used:

      "template-url": "https://github.com/puppetlabs/pdk-templates",
      "template-ref": "1.3.0-0-g632fa63"
      

      A solution is to possibly remove this key from the answers file entirely - else we need to make sure this value is actually up to date with the template used.

      Attachments

        Activity

          People

            tim.sharpe Tim Sharpe
            helen Helen Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support