Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel <blackrabbit256@gmail.com>2022-02-15 18:44:58 +1100
committerGitHub <noreply@github.com>2022-02-15 08:44:58 +0100
commit6489a417aa8d43bd58ec0fd1268d0dd734b0073f (patch)
tree476033ff0d6a2650ff5202f42b248e7b4bbe2f8d /examples
parentd9118a33b3a25839fde8626cde313115ddb79376 (diff)
Fix #966 - DeferredTranslation errors (#976)
* Fix #966 * Add types to parameters * Update network configuration * Backwards compability for nic config * Update Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
-rw-r--r--examples/swiss.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 24db7eb4..23fd45a6 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -163,7 +163,7 @@ def perform_installation(mountpoint):
# If user selected to copy the current ISO network configuration
# Perform a copy of the config
- if archinstall.arguments.get('nic', {}) == 'Copy ISO network configuration to installation':
+ if archinstall.arguments.get('nic', {}).get('type', '') == 'iso_config':
installation.copy_iso_network_config(enable_services=True) # Sources the ISO network configuration to the install medium.
elif archinstall.arguments.get('nic', {}).get('NetworkManager', False):
installation.add_additional_packages("networkmanager")
diff --git a/examples/swiss.py b/examples/swiss.py
index fa2d1fb6..9f3cf9dd 100644
--- a/examples/swiss.py
+++ b/examples/swiss.py
@@ -395,7 +395,7 @@ def os_setup(installation):
# If user selected to copy the current ISO network configuration
# Perform a copy of the config
- if archinstall.arguments.get('nic', {}) == 'Copy ISO network configuration to installation':
+ if archinstall.arguments.get('nic', {}).get('type', '') == 'iso_config':
installation.copy_iso_network_config(
enable_services=True) # Sources the ISO network configuration to the install medium.
elif archinstall.arguments.get('nic', {}).get('NetworkManager', False):