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

resource_reference_without_whitespace error on resource collection #9

Closed
rendhalver opened this issue Aug 9, 2016 · 15 comments
Closed

Comments

@rendhalver
Copy link

For some reason I am getting an error from your module where I don't think there should be one.

Error message:
resource_reference_without_whitespace:ERROR:whitespace between reference type and title

Resource.
Sshkeys::Set_authorized_key <<| tag == $::facts[fqdn] |>>

I am rather sure that is a valid resource collector.
If I use a non structured fact it fails.
If I take out all the spaces on that line it passes.

Whereas this resource collector does not produce the error.
Sshkey <<| tag == $primary_server |>>

Is something going wrong because it is a sub resource?

domcleal added a commit to domcleal/puppet-lint-resource_reference_syntax that referenced this issue Aug 10, 2016
@domcleal
Copy link
Contributor

I can't reproduce this:

$ cat test.pp
Sshkeys::Set_authorized_key <<| tag == $::facts[fqdn] |>>
$ puppet-lint test.pp
$

and these tests all pass: domcleal@8f6100f. Are you on version 1.0.8?

@rendhalver
Copy link
Author

My Gemfile.lock file says I am actually on 1.0.9 which I though was weird.
I am still on puppet-lint 1.1.0. Would that have any effect?

@rendhalver
Copy link
Author

I am also using puppet 4.4.2 if that changes anything.

@domcleal
Copy link
Contributor

Does the example I gave also pass for you? If so, please adjust or re-check the original.

@rendhalver
Copy link
Author

Yes it does pass in my local environment.
We use Jenkins to run our tests.
I will see if the same code passes on our test server.
I will try and work out what is going on and get back to you.

@rendhalver
Copy link
Author

Oh and thanks for the quick response. :)

@tuxmea
Copy link
Member

tuxmea commented Aug 10, 2016

Hi Pete,

this was an issue with an older version.
Please check whether your testing server has an old version cached.

Best,
Martin

On 10 Aug 2016, at 14:53, Pete Brown [email protected] wrote:

Oh and thanks for the quick response. :)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@tuxmea
Copy link
Member

tuxmea commented Nov 23, 2016

@rendhalver is this issue still open or can we close this?

@tuxmea
Copy link
Member

tuxmea commented Dec 6, 2016

No feedback. closing.

@tuxmea tuxmea closed this as completed Dec 6, 2016
@rendhalver
Copy link
Author

Sorry for late reply.
Yes it still happening.
Would the version of puppet-lint have any bearing on this?
We are locked at 1.1.0 because of the plugins we use.

@tuxmea
Copy link
Member

tuxmea commented Dec 7, 2016

If you are stuck with puppet-lint 1.1.0 you can open issues at the plugins which have not yet updated to the newest version of puppet-lint.
(btw: which ones are these that force you to 1.1.0?)

@tuxmea tuxmea reopened this Dec 7, 2016
@rendhalver
Copy link
Author

Quite a few it seems.
Excerpt from my Gemfie.lock:

puppet-lint (1.1.0)
puppet-lint-absolute_classname-check (0.1.3)
  puppet-lint (~> 1.0)
puppet-lint-empty_string-check (0.2.1)
  puppet-lint (~> 1.0)
puppet-lint-file_ensure-check (0.3.1)
  puppet-lint (>= 1.0, < 3.0)
puppet-lint-leading_zero-check (0.1.0)
  puppet-lint (~> 1.0)
puppet-lint-resource_reference_syntax (1.0.9)
  puppet-lint (>= 1.0, < 3.0)
puppet-lint-roles_and_profiles-check (0.1.0)
  puppet-lint (~> 1.0)
puppet-lint-spaceship_operator_without_tag-check (0.1.0)
  puppet-lint (~> 1.0)
puppet-lint-strict_indent-check (2.0.1)
  puppet-lint (~> 1.0)
puppet-lint-trailing_comma-check (0.3.2)
  puppet-lint (>= 1.0, < 3.0)
puppet-lint-trailing_newline-check (1.0.0)
  puppet-lint (~> 1.0)
puppet-lint-undef_in_function-check (0.1.0)
  puppet-lint (~> 1.0)
puppet-lint-unquoted_string-check (0.2.5)
  puppet-lint (~> 1.0)
puppet-lint-variable_contains_upcase (1.0.0)
  puppet-lint (~> 1.0)

@tuxmea
Copy link
Member

tuxmea commented Dec 8, 2016

puppet-lint (1.1.0)
puppet-lint-absolute_classname-check (0.1.3)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/voxpupuli/puppet-lint-absolute_classname-check in version 0.2.4

puppet-lint-empty_string-check (0.2.1)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/voxpupuli/puppet-lint-empty_string-check in version 0.2.2

puppet-lint-file_ensure-check (0.3.1)
puppet-lint (>= 1.0, < 3.0)
Safe.

puppet-lint-leading_zero-check (0.1.0)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/voxpupuli/puppet-lint-leading_zero-check in version 0.1.1

puppet-lint-resource_reference_syntax (1.0.9)
puppet-lint (>= 1.0, < 3.0)
Safe.

puppet-lint-roles_and_profiles-check (0.1.0)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/mcanevet/puppet-lint-roles_and_profiles-check in version 0.1.1

puppet-lint-spaceship_operator_without_tag-check (0.1.0)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/voxpupuli/puppet-lint-spaceship_operator_without_tag-check in version 0.1.1

puppet-lint-strict_indent-check (2.0.1)
puppet-lint (~> 1.0)
PR created: voxpupuli/puppet-lint-strict_indent-check#8
Fixed: voxpupuli/puppet-lint-strict_indent-check#8 (comment)

puppet-lint-trailing_comma-check (0.3.2)
puppet-lint (>= 1.0, < 3.0)
Safe.

puppet-lint-trailing_newline-check (1.0.0)
puppet-lint (~> 1.0)
PR created: rodjek/puppet-lint-trailing_newline-check#3

puppet-lint-undef_in_function-check (0.1.0)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/voxpupuli/puppet-lint-undef_in_function-check in version 0.2.1

puppet-lint-unquoted_string-check (0.2.5)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/voxpupuli/puppet-lint-unquoted_string-check in version 0.3.0

puppet-lint-variable_contains_upcase (1.0.0)
puppet-lint (~> 1.0)
Fixed upstream: https://github.com/fiddyspence/puppetlint-variablecase in version 1.0.2

@rendhalver
Copy link
Author

Thanks.
I have been way too busy to check if newer releases happened.
I will get those updated and let you know how it goes.

@rendhalver
Copy link
Author

Thank you!
I just tested those updates including your two new PR's and all my tests work as expected.

It will be nice to finally upgrade to puppet-lint 2! <3

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

3 participants