mirror of https://github.com/ceph/ceph-ansible.git
library: ceph_crush: set containerized param to false to respect docstrings
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
(cherry picked from commit d1f85f5ad3
)
pull/7453/head
parent
41d96ac58f
commit
acea6ac6e4
|
@ -139,16 +139,14 @@ def exec_commands(module, cmd_list):
|
|||
return rc, cmd, out, err
|
||||
|
||||
|
||||
def run_module():
|
||||
module_args = dict(
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
cluster=dict(type='str', required=False, default='ceph'),
|
||||
location=dict(type='dict', required=True),
|
||||
containerized=dict(type='str', required=True, default=None),
|
||||
)
|
||||
|
||||
module = AnsibleModule(
|
||||
argument_spec=module_args,
|
||||
supports_check_mode=True
|
||||
containerized=dict(type='str', required=False, default=None),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
cluster = module.params['cluster']
|
||||
|
@ -194,9 +192,5 @@ def run_module():
|
|||
module.exit_json(**result)
|
||||
|
||||
|
||||
def main():
|
||||
run_module()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue