Skip to content

Commit

Permalink
OpenShiftAPIManager: Log exception when waiting for namespaced custom…
Browse files Browse the repository at this point in the history
… resource

Signed-off-by: Jens Müller <[email protected]>
  • Loading branch information
jensmueller-com committed Apr 29, 2024
1 parent 2aa81c4 commit c8e249b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022, 2023 IBM Corporation
# Copyright 2022, 2024 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import logging

from dataclasses import dataclass
from typing import Any

Expand Down Expand Up @@ -100,7 +102,9 @@ def run(self):
)

result = {"changed": False}
except Exception:
except Exception as exception:
self._log(logging.ERROR, str(exception))

result = {"changed": False, "failed": True}

self._module.exit_json(**result)
Expand Down

0 comments on commit c8e249b

Please sign in to comment.