Add guards for templates (#115)

* Add guards for templates

If you try to build locally some issues will arise due the templating
trying to access non existing values.

This patch guards those failures by first checking the the var exists
before trying to get the value, avoiding panics.

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Bump immucore

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-02-14 14:10:52 +01:00
committed by GitHub
parent 4d565617ac
commit 4c2893381f
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
name: "immucore" name: "immucore"
category: "dracut" category: "dracut"
version: "0.0.4" version: "0.0.5"
labels: labels:
github.repo: "immucore" github.repo: "immucore"
autobump.revdeps: "true" autobump.revdeps: "true"

View File

@@ -1,6 +1,6 @@
name: "immucore" name: "immucore"
category: "system" category: "system"
version: "0.0.4" version: "0.0.5"
labels: labels:
github.repo: "immucore" github.repo: "immucore"
autobump.revdeps: "true" autobump.revdeps: "true"