From 2eca446f09ec3d5438974de3a9fd1375093c9334 Mon Sep 17 00:00:00 2001 From: Mike Graves Date: Wed, 23 Jun 2021 18:50:32 -0400 Subject: [PATCH] Remove turbo mode functionality (#149) * Remove turbo mode functionality * Add changelog fragment * Fix linting issue * Update docs --- README.md | 5 ----- changelogs/fragments/149-disable-turbo-mode.yaml | 3 +++ plugins/module_utils/ansiblemodule.py | 8 +------- 3 files changed, 4 insertions(+), 12 deletions(-) create mode 100644 changelogs/fragments/149-disable-turbo-mode.yaml diff --git a/README.md b/README.md index 1469c1fa..7beff2cd 100644 --- a/README.md +++ b/README.md @@ -159,11 +159,6 @@ If upgrading older playbooks which were built prior to Ansible 2.10 and this col For documentation on how to use individual modules and other content included in this collection, please see the links in the 'Included content' section earlier in this README. -## Ansible Turbo mode Tech Preview - -The ``kubernetes.core`` collection supports Ansible Turbo mode as a tech preview via the ``cloud.common`` collection. Please read more about Ansible Turbo mode - [here](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/ansible_turbo_mode.rst). - - ## Testing and Development If you want to develop new content for this collection or improve what's already here, the easiest way to work on the collection is to clone it into one of the configured [`COLLECTIONS_PATHS`](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths), and work on it there. diff --git a/changelogs/fragments/149-disable-turbo-mode.yaml b/changelogs/fragments/149-disable-turbo-mode.yaml new file mode 100644 index 00000000..227020a5 --- /dev/null +++ b/changelogs/fragments/149-disable-turbo-mode.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: + - temporarily disable turbo mode (https://github.com/ansible-collections/kubernetes.core/pull/149). diff --git a/plugins/module_utils/ansiblemodule.py b/plugins/module_utils/ansiblemodule.py index 97fc7604..a647b163 100644 --- a/plugins/module_utils/ansiblemodule.py +++ b/plugins/module_utils/ansiblemodule.py @@ -3,10 +3,4 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -try: - from ansible_collections.cloud.common.plugins.module_utils.turbo.module import ( - AnsibleTurboModule as AnsibleModule, - ) # noqa: F401 - AnsibleModule.collection_name = "kubernetes.core" -except ImportError: - from ansible.module_utils.basic import AnsibleModule # noqa: F401 +from ansible.module_utils.basic import AnsibleModule # noqa: F401