From: Dimitri Savineau Date: Tue, 24 Nov 2020 20:14:52 +0000 (-0500) Subject: library: remove useless condition in ceph_volume X-Git-Tag: v6.0.0alpha3~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0cc34fa54e33247b9154c05f8ad1ee9722282079;p=ceph-ansible.git 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 --- 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