Added error handling for install_profile() if string vs Profile() is given as an argument.
This commit is contained in:
parent
37b1e61828
commit
abd15f9ff5
|
|
@ -363,7 +363,8 @@ class Installer():
|
||||||
return self.pacstrap(*packages)
|
return self.pacstrap(*packages)
|
||||||
|
|
||||||
def install_profile(self, profile):
|
def install_profile(self, profile):
|
||||||
profile = Profile(self, profile)
|
if type(profile) == str:
|
||||||
|
profile = Profile(self, profile)
|
||||||
|
|
||||||
self.log(f'Installing network profile {profile}', level=LOG_LEVELS.Info)
|
self.log(f'Installing network profile {profile}', level=LOG_LEVELS.Info)
|
||||||
return profile.install()
|
return profile.install()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue