From 0cc34fa54e33247b9154c05f8ad1ee9722282079 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 24 Nov 2020 15:14:52 -0500 Subject: [PATCH] library: remove useless condition in ceph_volume Since the action values are already defined as a list of choices in ansible then we will never enter into this condition. Signed-off-by: Dimitri Savineau --- library/ceph_volume.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/ceph_volume.py b/library/ceph_volume.py index 0787c5fe1..3bf0e2a8d 100644 --- a/library/ceph_volume.py +++ b/library/ceph_volume.py @@ -720,10 +720,6 @@ def run_module(): else: cmd = batch_report_cmd - else: - module.fail_json( - msg='State must either be "create" or "prepare" or "activate" or "list" or "zap" or "batch" or "inventory".', changed=False, rc=1) # noqa E501 - endd = datetime.datetime.now() delta = endd - startd -- 2.47.3