Merge pull request 'refs #1874 fix syntax' (#22) from fix-syntax into main
ogclone-engine/pipeline/tag This commit looks good Details

Reviewed-on: #22
pull/23/head 0.3.5
Natalia Serrano 2025-04-09 17:34:55 +02:00
commit 0352e3a2cc
2 changed files with 8 additions and 1 deletions

View File

@ -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.3.5] - 2025-04-09
### Fixed
- Fixed syntax
## [0.3.4] - 2025-04-09
### Fixed

View File

@ -286,7 +286,8 @@ def ogGetFsSize (disk, par, unit='KB'):
elif unit.upper() == "TB":
factor = 1024 * 1024 * 1024
elif unit.upper() != "KB":
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_FORMAT, f"{unit} != {{ KB, MB, GB, TB }}") return
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_FORMAT, f"{unit} != {{ KB, MB, GB, TB }}")
return
# Obtener el tamaño del sistema de archivo (si no está formateado; tamaño = 0).
mnt = ogMount (disk, par)