quattor / configuration-modules-core

Node Configuration Manager Components for Everyone
www.quattor.org
Other
6 stars 54 forks source link

ncm-systemd: systemctl show can doublequoted backslash values #1694

Closed stdweird closed 1 month ago

stdweird commented 1 month ago

Fixes #1677

stdweird commented 1 month ago

@jouvin i feel stupid for overlooking the real cause, but we run into it ourself, so it's easier to hack and debug

aka7 commented 1 month ago

I did a quick test with this on a host we saw following error.

[ERROR] Found alias "a-stor12ncs1.new\\x2dyork.ms.com-sc1322-s10463.mount" for unit a-stor12ncs1.new\x2dyork.ms.com-sc1322-s10463.mount that doesn't match expected pattern '^(.*)\.(automount|device|mount|path|scope|service|slice|snapshot|socket|swap|target|timer)$'. Skipping.
[ERROR] get_unit_show: no alias for unit a-stor12ncs1.new\x2dyork.ms.com-sc1322-s10463.mount defined. (Forgot to update cache?)

and this pr has fixed it. thank you.

Can we get this merged?