]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
library: remove useless condition in ceph_volume
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 24 Nov 2020 20:14:52 +0000 (15:14 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 25 Nov 2020 09:44:48 +0000 (10:44 +0100)
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 <dsavinea@redhat.com>
library/ceph_volume.py

index 0787c5fe100be010efdc1422200d813025997685..3bf0e2a8deeedb07e9634c0dd8f76b52447dba95 100644 (file)
@@ -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