From 2c18e6981f05c98938e57b8adf0a036504299774 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Thu, 10 Apr 2025 13:32:48 +0200 Subject: [PATCH] refs #1879 negate rc to the shell --- CHANGELOG.md | 6 ++++++ ogclient/scripts/restoreImage.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46b173f..476e917 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.4.1] - 2025-04-10 + +### Fixed + +- restoreImage.py: return negated rc to the shell + ## [0.4.0] - 2025-04-10 ### Changed diff --git a/ogclient/scripts/restoreImage.py b/ogclient/scripts/restoreImage.py index a5f0ff6..961b971 100644 --- a/ogclient/scripts/restoreImage.py +++ b/ogclient/scripts/restoreImage.py @@ -114,5 +114,5 @@ t = time.time() - t0 SystemLib.ogEcho (['log', 'session'], None, f'[100] Duracion de la operacion {int (t/60)}m {int (t%60)}s') # Código de salida del comando prinicpal de restauración. -sys.exit (retval) +sys.exit (not retval) ## negated for the shell