blueprint: delete HasIgnition() function

Unify how are allowed options checked in distro implementation in
relation to Ignition customization. Specifically, delete `HasIgnition()`
function and replace its use by `GetIgnition()` call and checking if it is
`nil`. This approach is consistent with how this is checked for other
customizations.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-01-31 12:27:40 +01:00 committed by Sanne Raymaekers
parent 317565f2c4
commit 0e4dabd265
2 changed files with 1 additions and 5 deletions

View file

@ -407,7 +407,3 @@ func (c *Customizations) GetIgnition() *IgnitionCustomization {
}
return c.Ignition
}
func (c *IgnitionCustomization) HasIgnition() bool {
return c != nil
}