mirror of
https://github.com/openshift/community.okd.git
synced 2026-04-27 08:46:27 +00:00
Enable turbo mode (#102)
* Enable turbo mode This enables turbo mode (default is off) for the modules in this collection that use the client from the kubernetes.core collection. * Add changelog fragment
This commit is contained in:
@@ -309,7 +309,10 @@ duration:
|
||||
import copy
|
||||
import traceback
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
try:
|
||||
from ansible_collections.kubernetes.core.plugins.module_utils.ansiblemodule import AnsibleModule
|
||||
except ImportError:
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils._text import to_native
|
||||
|
||||
try:
|
||||
@@ -357,6 +360,7 @@ class OpenShiftRoute(K8sAnsibleMixin):
|
||||
self.check_mode = self.module.check_mode
|
||||
self.warnings = []
|
||||
self.params['merge_type'] = None
|
||||
self.client = get_api_client(self.module)
|
||||
|
||||
@property
|
||||
def argspec(self):
|
||||
@@ -385,7 +389,6 @@ class OpenShiftRoute(K8sAnsibleMixin):
|
||||
return spec
|
||||
|
||||
def execute_module(self):
|
||||
self.client = get_api_client(self.module)
|
||||
v1_routes = self.find_resource('Route', 'route.openshift.io/v1', fail=True)
|
||||
|
||||
service_name = self.params.get('service')
|
||||
|
||||
Reference in New Issue
Block a user