-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Usage of systemd::escape
in systemd::timer_wrapper
creates weird names
#451
Comments
Only |
systemd::escape
in systemd::timer_wrapper
creates weird names
Hm well that is actually what $ systemd-escape a/b-c
a-b\x2dc There is the
systemd-escape -m a/b-c
a-b-c.service Not sure what we should do here.
|
BTW $ systemctl list-units --all | grep '\\x2d' | wc -l
70 |
Yes, for units containing path names for example, but not "normal" services. I'd suggest to drop the |
Hm maybe you are right. Just use the users input and fail if it is an invalid name, e.g. containing |
But I guess we have to mark it as breaking change then :/ |
It might get even more complicated, as the name changes, the old unit won't be managed and will stay on the system, while the new one gets created. |
remove `systemd::escape` usage for `timer_wrapper`
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Due to the usage of
systemd::escape
inpuppet-systemd/manifests/timer_wrapper.pp
Line 78 in 45e0953
-
will be escaped and becomes\x2d
.What behaviour did you expect instead
Timer and service are named
prometheus-node-exporter-deleted_libraries-custom
notprometheus\\x2dnode\\x2dexporter\\x2ddeleted_libraries\\x2dcustom
Output log
Any additional information you'd like to impart
Link to the discussion on the usage of
systemd::escape
#419 (comment)The text was updated successfully, but these errors were encountered: