Skip to content

Commit

Permalink
filesystem: reset-partition size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Peterson444 committed Apr 12, 2024
1 parent 75200b8 commit 9dfb40b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subiquity/server/controllers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,8 @@ async def run_autoinstall_guided(self, layout):
rp_input = layout.get("reset-partition", None)
if rp_input:
reset_partition = True
if isinstance(rp_input, (str, int)):
# bool is a sublcass of int
if isinstance(rp_input, str) or type(rp_input).__name__ == "int":
reset_partition_size = int(human2bytes(rp_input))
log.info(
"autoinstall: will install reset partition "
Expand Down

0 comments on commit 9dfb40b

Please sign in to comment.