Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/mac_address_installation.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mac_address_installation.py')
-rw-r--r--examples/mac_address_installation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/mac_address_installation.py b/examples/mac_address_installation.py
index 0a1c5160..74a123c7 100644
--- a/examples/mac_address_installation.py
+++ b/examples/mac_address_installation.py
@@ -1,13 +1,13 @@
import time
import archinstall
-from archinstall.lib.profile.profiles_handler import profile_handler
+from archinstall import profile, info
-for profile in profile_handler.get_mac_addr_profiles():
+for _profile in profile.profile_handler.get_mac_addr_profiles():
# Tailored means it's a match for this machine
# based on it's MAC address (or some other criteria
# that fits the requirements for this machine specifically).
- archinstall.log(f'Found a tailored profile for this machine called: "{profile.name}"')
+ info(f'Found a tailored profile for this machine called: "{_profile.name}"')
print('Starting install in:')
for i in range(10, 0, -1):
@@ -15,4 +15,4 @@ for profile in profile_handler.get_mac_addr_profiles():
time.sleep(1)
install_session = archinstall.storage['installation_session']
- profile.install(install_session)
+ _profile.install(install_session)