Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-02-07 12:53:01 +0100
committerAnton Hvornum <anton@hvornum.se>2021-02-07 12:53:01 +0100
commite06603f0e143360ccb932ce39df37eac22969f90 (patch)
treeac0e0a2367618fe17a3e6b843db2071c3e0c62d8 /examples
parentfa2270a11b833928186727812a3a3f82d18ef5ce (diff)
has_partitions() doesn't take any parameters, old reminant of prototype code.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 1e879316..5268042d 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -98,7 +98,7 @@ archinstall.storage['_guided']['mirrors'] = mirror_regions
harddrive = archinstall.select_disk(archinstall.all_disks())
archinstall.storage['_guided']['harddrive'] = harddrive
-if harddrive.has_partitions(harddrive):
+if harddrive.has_partitions():
archinstall.log(f" ! {harddrive} contains existing partitions", fg='red')
if (option := input('Do you wish to keep existing partition setup or format the entire disk? (k/f): ')).lower() in ('k', 'keep'):
print("We're keeping it!")