Fix minor typos on variable names (#47165)

This commit is contained in:
Joey 2018-10-19 22:44:34 +08:00 committed by ansibot
parent 21859c06b9
commit c5a9b6acb7

View file

@ -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: