File tree 1 file changed +8
-6
lines changed
ncm-systemd/src/main/pan/components/systemd
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ type hwloc_location = string with match(SELF, '^[\w:.]+$');
17
17
syslog facility to use when logging to syslog
18
18
}
19
19
type syslog_facility = string with match (SELF,
20
- ' ^(kern|user|mail|daemon|auth|syslog|lprnews |uucp|cron|authpriv|ftp|local[0-7])$'
20
+ ' ^(kern|user|mail|daemon|auth|syslog|lpr|news |uucp|cron|authpriv|ftp|local[0-7])$'
21
21
);
22
22
23
23
@documentation {
@@ -545,11 +545,13 @@ type ${project.artifactId}_component = {
545
545
# escaped full unitnames are allowed (or use shortnames and type)
546
546
" unit" ? ${project.artifactId}_unit_type{}
547
547
} with {
548
- foreach (name; unit; SELF[" unit" ]) {
549
- if (unit[" type" ] == " mount" && exists (unit[" file" ]) && exists (unit[" file" ][" config" ][" mount" ])) {
550
- goodname = systemd_make_mountunit(unit[" file" ][" config" ][" mount" ][" Where" ]);
551
- if (goodname ! = name) {
552
- error (' Incorrect name for mount unit, the name must match Where: %s vs %s' , name, goodname);
548
+ if (is_defined (SELF[" unit" ])) {
549
+ foreach (name; unit; SELF[" unit" ]) {
550
+ if (unit[" type" ] == " mount" && exists (unit[" file" ]) && exists (unit[" file" ][" config" ][" mount" ])) {
551
+ goodname = systemd_make_mountunit(unit[" file" ][" config" ][" mount" ][" Where" ]);
552
+ if (goodname ! = name) {
553
+ error (' Incorrect name for mount unit, the name must match Where: %s vs %s' , name, goodname);
554
+ };
553
555
};
554
556
};
555
557
};
You can’t perform that action at this time.
0 commit comments