config/state: remove field_name from missing device/flavour hint as it gets used as the profile name

This commit is contained in:
InsanePrawn 2023-02-06 01:51:35 +01:00
parent 13aa258794
commit dfd191060a

View file

@ -257,7 +257,7 @@ class ConfigStateHolder:
profile = self.get_profile(profile_name)
if field not in profile or not profile[field]:
m = (f'Profile "{profile_name}" has no {field.upper()} configured.\n'
f'Please run `kupferbootstrap config profile init {field}`{arch_hint}')
f'Please run `kupferbootstrap config profile init {profile_name}`{arch_hint}')
raise Exception(m)
return profile