From c5a9b6acb76e063129074dfb4d67ec4c6de4ba72 Mon Sep 17 00:00:00 2001 From: Joey Date: Fri, 19 Oct 2018 22:44:34 +0800 Subject: [PATCH] Fix minor typos on variable names (#47165) --- lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py b/lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py index b556dd64aeb..6195d8e4bfd 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_datacenter.py @@ -208,7 +208,7 @@ def main(): auth = module.params.pop('auth') connection = create_connection(auth) data_centers_service = connection.system_service().data_centers_service() - clusters_module = DatacentersModule( + data_centers_module = DatacentersModule( connection=connection, module=module, service=data_centers_service, @@ -216,9 +216,9 @@ def main(): state = module.params['state'] if state == 'present': - ret = clusters_module.create() + ret = data_centers_module.create() elif state == 'absent': - ret = clusters_module.remove(force=module.params['force']) + ret = data_centers_module.remove(force=module.params['force']) module.exit_json(**ret) except Exception as e: