Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-14 14:41:13 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-14 14:41:13 +0100
commitabd15f9ff5a53face8b5d8efc29118b7362735b2 (patch)
treecd25a6959ee8372e427c6c87018fa3a2869fa911 /archinstall/lib/installer.py
parent37b1e618280c8b428824f202902e392792e10c18 (diff)
Added error handling for install_profile() if string vs Profile() is given as an argument.
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index b45ad1dc..3daf96f4 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -363,7 +363,8 @@ class Installer():
return self.pacstrap(*packages)
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)
return profile.install()