Skip to content

nixos/collectd: Fix syntax error on some hostnames. #20694

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

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

MostAwesomeDude
Copy link
Contributor

Motivation for this change

I wanted to monitor a host with the hostname "helper-us-west1". This hostname causes syntax errors if unquoted.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Tested on live machines.

Without this, hostnames that e.g. end in digits will cause syntax errors for
collectd.

Sorry, something went wrong.

Without this, hostnames that e.g. end in digits will cause syntax errors for
collectd.
@mention-bot
Copy link

@MostAwesomeDude, thanks for your PR! By analyzing the history of the files in this pull request, we identified @offlinehacker, @fpletz and @bjornfor to be potential reviewers.

@fpletz fpletz added 0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: port to stable A PR needs a backport to the stable release. labels Nov 24, 2016
@fpletz
Copy link
Member

fpletz commented Nov 24, 2016

Thanks! 🍻

@fpletz fpletz merged commit 27f1def into NixOS:master Nov 24, 2016
fpletz pushed a commit that referenced this pull request Nov 24, 2016

Verified

This commit was signed with the committer’s verified signature.
fpletz Franz Pletz
Without this, hostnames that e.g. end in digits will cause syntax errors for
collectd.

(cherry picked from commit 27f1def)
@samueldr samueldr removed the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 17, 2019
adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
Without this, hostnames that e.g. end in digits will cause syntax errors for
collectd.

(cherry picked from commit 27f1def)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants