diff --git a/sat/cli/bootprep/input/session_template.py b/sat/cli/bootprep/input/session_template.py index faec62d0..598f083a 100644 --- a/sat/cli/bootprep/input/session_template.py +++ b/sat/cli/bootprep/input/session_template.py @@ -115,10 +115,9 @@ def validate_rootfs_provider_has_value(self, **_): Raises: InputItemValidateError: if the rootfs_provider is an empty string """ - if not self.boot_sets['rootfs_provider']: - return - else: - raise InputItemValidateError(f'The value of rootfs_provider cannot be an empty string') + for boot_set in self.boot_sets.values(): + if not boot_set['rootfs_provider']: + raise InputItemValidateError(f'The value of rootfs_provider cannot be an empty string') @Validatable.validation_method() def validate_rootfs_provider_passthrough_has_value(self, **_): @@ -127,10 +126,9 @@ def validate_rootfs_provider_passthrough_has_value(self, **_): Raises: InputItemValidateError: if the rootfs_provider_passthrough is an empty string """ - if not self.boot_sets['rootfs_provider_passthrough']: - return - else: - raise InputItemValidateError(f'The value of rootfs_provider_passthrough cannot be an empty string') + for boot_set in self.boot_sets.values(): + if not boot_set['rootfs_provider_passthrough']: + raise InputItemValidateError(f'The value of rootfs_provider_passthrough cannot be an empty string') @Validatable.validation_method() def validate_configuration_exists(self, **_):