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

Fails to detect bad file_mode when notify used #150

Open
maxb opened this issue Sep 8, 2023 · 0 comments
Open

Fails to detect bad file_mode when notify used #150

maxb opened this issue Sep 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@maxb
Copy link

maxb commented Sep 8, 2023

A file_mode warning which should be generated, is not.

Given this sample.pp:

service {
  'zero':
}

file {
  '/one':
    mode   => '755',
    notify => Service['zero'];

  '/two':
    mode => '755';
}

and

puppet-lint --config /dev/null sample.pp

one would expect file_mode warnings about both mode arguments.

But actually, only the first is warned about:

WARNING: mode should be represented as a 4 digit octal value or symbolic mode on line 7 (check: file_mode)

Something about the line

    notify => Service['zero'];

causes the following instance to not generate a lint warning.

Environment

$ puppet-lint --version
puppet-lint 4.2.0
@maxb maxb added the bug Something isn't working label Sep 8, 2023
@maxb maxb changed the title Fails to detect bad file_mode when notify Fails to detect bad file_mode when notify used Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant