mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-05-07 13:52:39 +00:00
fix(changed): Fix change detection temporarily
Fix the change detection of kubernetes.core temporarily by monkey patching the service.diff_objects function. This fix should be removed once it was merged into kubernetes.core. A dummy _patch_diff_objects function is introduced to satisfy ansible linters. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
@@ -282,6 +282,11 @@ result:
|
||||
type: str
|
||||
"""
|
||||
|
||||
# Monkey patch service.diff_objects to temporarily fix the changed logic
|
||||
from ansible_collections.kubevirt.core.plugins.module_utils.diff import (
|
||||
_patch_diff_objects,
|
||||
)
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Dict
|
||||
|
||||
@@ -457,4 +462,5 @@ def main() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
_patch_diff_objects()
|
||||
main()
|
||||
|
||||
@@ -159,6 +159,11 @@ resources:
|
||||
type: dict
|
||||
"""
|
||||
|
||||
# Monkey patch service.diff_objects to temporarily fix the changed logic
|
||||
from ansible_collections.kubevirt.core.plugins.module_utils.diff import (
|
||||
_patch_diff_objects,
|
||||
)
|
||||
|
||||
from copy import deepcopy
|
||||
|
||||
from ansible_collections.kubernetes.core.plugins.module_utils.ansiblemodule import (
|
||||
@@ -223,4 +228,5 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
_patch_diff_objects()
|
||||
main()
|
||||
|
||||
@@ -144,6 +144,11 @@ resources:
|
||||
type: dict
|
||||
"""
|
||||
|
||||
# Monkey patch service.diff_objects to temporarily fix the changed logic
|
||||
from ansible_collections.kubevirt.core.plugins.module_utils.diff import (
|
||||
_patch_diff_objects,
|
||||
)
|
||||
|
||||
from copy import deepcopy
|
||||
|
||||
from ansible_collections.kubernetes.core.plugins.module_utils.ansiblemodule import (
|
||||
@@ -202,4 +207,5 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
_patch_diff_objects()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user