Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDK: incorrect example of invocation of pdk get config #1172

Open
hbrown-uiowa opened this issue Sep 23, 2024 · 1 comment
Open

PDK: incorrect example of invocation of pdk get config #1172

hbrown-uiowa opened this issue Sep 23, 2024 · 1 comment
Labels
triaged This ticket has been accepted to our backlog and migrated internally

Comments

@hbrown-uiowa
Copy link

Describe the Bug

Sample code is incorrect on https://www.puppet.com/docs/pdk/3.x/pdk_reference
The documentation lists this as the example for getting a config value: pdk config get user.module_defaults.author
If I run the command, I get pdk: unknown command 'config'

Expected Behavior

I expect to see the value of user.module_defaults.author.

Steps to Reproduce

Steps to reproduce the behavior:

  1. pdk new module foo
  2. cd foo
  3. pdk config get user.module_defaults.author

Environment

  • $ pdk --version
    3.3.0

  • Fedora 40

Additional Context

The documentation for 2.x has a similar problem and also tries to reference a key that does not exist

$ pdk get config user.analytics.disabled
pdk (ERROR): Configuration item 'user.analytics.disabled' does not exist
@lisarobertson lisarobertson added the triaged This ticket has been accepted to our backlog and migrated internally label Oct 4, 2024
Copy link

github-actions bot commented Oct 4, 2024

Migrated issue to PUPDOC-5695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged This ticket has been accepted to our backlog and migrated internally
Projects
None yet
Development

No branches or pull requests

2 participants