mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 13:45:45 -05:00
config.enforce_profile_device_set(): default profile_name from profiles.current to output in error msgs if "None" passed
This commit is contained in:
parent
927fa352c5
commit
ad83d14861
1 changed files with 1 additions and 0 deletions
|
@ -234,6 +234,7 @@ class ConfigStateHolder:
|
|||
return self._profile_cache[name]
|
||||
|
||||
def enforce_profile_device_set(self, profile_name: Optional[str] = None, hint_or_set_arch: bool = False) -> Profile:
|
||||
profile_name = profile_name if profile_name is not None else self.file.profiles.current
|
||||
arch_hint = ''
|
||||
if not hint_or_set_arch:
|
||||
self.enforce_config_loaded()
|
||||
|
|
Loading…
Add table
Reference in a new issue