mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-27 05:43:02 +00:00
This primarily moves the diff and wait logic from the various service methods to perform_action to eliminate code duplication. I also moved the diff_objects function out of the service object and moved most of the find_resource logic to a new resource client method. We ended up with several modules creating a service object just to use one of these methods, so it seemed to make sense to make these more accessible.
13 lines
335 B
Python
13 lines
335 B
Python
# Copyright: (c) 2021, Red Hat | Ansible
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
|
class CoreException(Exception):
|
|
pass
|
|
|
|
|
|
class ResourceTimeout(CoreException):
|
|
def __init__(self, message="", result=None):
|
|
self.result = result or {}
|
|
super().__init__(message)
|