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

pdk config del[ete] to CLI

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.18.0
    • Component/s: None
    • Template:
    • Team:
      Puppet Developer Experience
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Add `pdk config del[ete]` option to unset value(s) in a given configuration key.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Unset one more more values from the given configuration key.

      If <key> is not a leaf node, exits non-zero with an error message.

      If <key> currently stores no value, issues a warning but exits with a success status.

      If <key> currently stores a single value:

      If no <value> is provided, unsets existing value.

      If provided <value> matches existing value, unsets existing value.

      If provided <value> does not match existing value, exits non-zero with an error message.

      If passed --all in place of a value, unsets existing value.

      If <key> currently stores multiple values:

      If no <value> is provided, exit non-zero with an error message indicating user must pass --all if they want to clear all values for the key.

      If provided <value> is present in the list of values for <key>, removes value from list.

      If provided <value> is not present in the list of values for <key>, issues a warning but exits with a success status.

      If passed --all in place of a value, empties the list of all existing values.

        Attachments

          Activity

            People

            Assignee:
            glenn.sarti Glenn Sarti
            Reporter:
            bryan.jen Bryan Jen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support