From 6d5dea6657aeacdeb377bbd618dfecf1c2efbff9 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Thu, 19 Jun 2025 11:39:58 +0200 Subject: [PATCH] refs #2238 support None as partition type --- CHANGELOG.md | 6 ++++++ ogclient/lib/python3/DiskLib.py | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f64a86b..61ab05b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.18.2] - 2025-06-19 + +### Fixed + +- Accept None as partition type + ## [0.18.1] - 2025-06-18 ### Fixed diff --git a/ogclient/lib/python3/DiskLib.py b/ogclient/lib/python3/DiskLib.py index 0b1f113..0977520 100644 --- a/ogclient/lib/python3/DiskLib.py +++ b/ogclient/lib/python3/DiskLib.py @@ -112,6 +112,7 @@ def ogCreatePartitions (disk, parts): # Leer formato de cada parámetro - Tipo:Tamaño TYPE, SIZE = p.split (':') + if TYPE is None or 'None' == TYPE: TYPE='EMPTY' try: SIZE = int (SIZE) except ValueError: