fixed creating profile object if profile is passed in vars

This commit is contained in:
Yash Tripathi 2021-05-21 04:00:09 +05:30 committed by Dylan Taylor
parent e6befe53c7
commit cba7dae8f0
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ def ask_user_questions():
# Ask for archinstall-specific profiles (such as desktop environments etc)
if not archinstall.arguments.get('profile', None):
archinstall.arguments['profile'] = archinstall.select_profile(archinstall.list_profiles(filter_top_level_profiles=True))
else:
archinstall.arguments['profile'] = Profile(installer=None, path=archinstall.arguments['profile'])
# Check the potentially selected profiles preparations to get early checks if some additional questions are needed.
if archinstall.arguments['profile'] and archinstall.arguments['profile'].has_prep_function():