From 72b591723f65c701ce75727bac381548c733dacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=91=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D1=88=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Thu, 22 Sep 2022 16:10:43 +0000 Subject: [PATCH] decort_disk bug fix --- library/decort_disk.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/decort_disk.py b/library/decort_disk.py index 61df9d9..5167d96 100644 --- a/library/decort_disk.py +++ b/library/decort_disk.py @@ -547,7 +547,7 @@ def main(): # if disk with specified name cannot be found and have a state 'absent', then nothing to do, # specified disk already deleted decon.result['msg'] = ("Disk with name '{}' has already been deleted or your account does not have" - "access to it.")\ + " access to it.")\ .format(amodule.params['name']) amodule.exit_json(**decon.result) @@ -555,7 +555,7 @@ def main(): # if disk with specified id cannot be found and have a state 'absent', then nothing to do, # specified disk already deleted decon.result['msg'] = ("Disk with name '{}' has already been deleted or your account does not have" - "access to it.")\ + " access to it.")\ .format(decon.validated_disk_id) amodule.exit_json(**decon.result) @@ -613,6 +613,7 @@ def main(): decon.disk_resize(disk_facts=decon.disk_facts, new_size=amodule.params['size']) decon.result['changed'] = True + decon.disk_facts['size'] = amodule.params['size'] decon.result['msg'] = ("Disk with id '{}',resized successfully.").format(decon.validated_disk_id) if amodule.params['limitIO'] and amodule.params['limitIO'] != decon.disk_facts['iotune']: