generate systemd: wrap pod/ctr lookup errors

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2020-06-10 11:05:41 +02:00
parent 139f82933d
commit 05713fbbf3
3 changed files with 7 additions and 6 deletions

View File

@ -41,7 +41,7 @@ func filterPodFlags(command []string) []string {
for i := 0; i < len(command); i++ {
s := command[i]
if s == "--pod" || s == "--pod-id-file" {
i += 1
i++
continue
}
processed = append(processed, s)