mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-31 11:54:43 +00:00
F841 remove unused variables
This commit is contained in:
@@ -317,7 +317,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable, K8sAnsibleM
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.inventory.add_child(namespace_services_group, service_name)
|
self.inventory.add_child(namespace_services_group, service_name)
|
||||||
except AnsibleError as e:
|
except AnsibleError:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
ports = [{'name': port.name,
|
ports = [{'name': port.name,
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ class KubernetesAuthModule(AnsibleModule):
|
|||||||
|
|
||||||
self.openshift_auth_endpoint = oauth_info['authorization_endpoint']
|
self.openshift_auth_endpoint = oauth_info['authorization_endpoint']
|
||||||
self.openshift_token_endpoint = oauth_info['token_endpoint']
|
self.openshift_token_endpoint = oauth_info['token_endpoint']
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.fail_json(msg="Something went wrong discovering OpenShift OAuth details.",
|
self.fail_json(msg="Something went wrong discovering OpenShift OAuth details.",
|
||||||
exception=traceback.format_exc())
|
exception=traceback.format_exc())
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ class KubernetesAuthModule(AnsibleModule):
|
|||||||
"kind": "DeleteOptions"
|
"kind": "DeleteOptions"
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = requests.delete(url, headers=headers, json=json, verify=self.con_verify_ca)
|
requests.delete(url, headers=headers, json=json, verify=self.con_verify_ca)
|
||||||
# Ignore errors, the token will time out eventually anyway
|
# Ignore errors, the token will time out eventually anyway
|
||||||
|
|
||||||
def fail(self, msg=None):
|
def fail(self, msg=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user