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

Facts not fixed correctly #38

Open
matejzero opened this issue Jul 20, 2022 · 0 comments
Open

Facts not fixed correctly #38

matejzero opened this issue Jul 20, 2022 · 0 comments

Comments

@matejzero
Copy link

Sorry for vague subject, can't think of a better one right now:)

I'm running VS Code puppet addon and some old modules are still using old facts which plugin tried to fix.

Example code:

class test::params {
  case $facts['os']['family'] {
    'RedHat': {
      case $facts['os']['release']['major'] {
        '6': {}
        default: {
          fail("${::osfamily} ${::operatingsystemmajrelease} based systems.")
        }
      }
    }
    default: {}
  }
}

This old facts get fixed to ${facts['facts['os']['family']'] which is obviously wrong.

VS Code says Puppet(legacy_facts) plugins is raising an error and the only plugin with that name I could find was this one. I hope this is the correct repo for filing this issue.

Let me know if you need more info and which.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant