From 1aed39cfc9e91dbbfeb754acf1a71f502cb92979 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Mon, 30 Aug 2021 19:38:49 +0200 Subject: [PATCH] lpar: Fix completion statuses for STOP operation The status of a stopped LPAR should be 'not-operating'. Signed-off-by: Alexander Egorenkov --- zhmcclient/_lpar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zhmcclient/_lpar.py b/zhmcclient/_lpar.py index 6cf05ee3..b906e50f 100644 --- a/zhmcclient/_lpar.py +++ b/zhmcclient/_lpar.py @@ -885,7 +885,7 @@ def stop(self, wait_for_completion=True, operation_timeout=None, status has reached the desired value. If `wait_for_completion=True`, this method repeatedly checks the status of the LPAR after the HMC operation has completed, and waits until the status is in the desired - state "operating", or if `allow_status_exceptions` was + state "not-operating", or if `allow_status_exceptions` was set additionally in the state "exceptions". Authorization requirements: @@ -903,7 +903,7 @@ def stop(self, wait_for_completion=True, operation_timeout=None, * If `True`, this method will wait for completion of the asynchronous job performing the operation, and for the status - becoming "operating" (or in addition "exceptions", if + becoming "not-operating" (or in addition "exceptions", if `allow_status_exceptions` was set. * If `False`, this method will return immediately once the HMC has @@ -958,7 +958,7 @@ def stop(self, wait_for_completion=True, operation_timeout=None, wait_for_completion=wait_for_completion, operation_timeout=operation_timeout) if wait_for_completion: - statuses = ["operating"] + statuses = ["not-operating"] if allow_status_exceptions: statuses.append("exceptions") self.wait_for_status(statuses, status_timeout)