Skip to content

Commit

Permalink
fixup! comments
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Jan 8, 2025
1 parent 52610a6 commit 12b7730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudinit/signal_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def inspect_handler(sig: Union[int, Callable, None]) -> None:
if callable(sig):
# only produce a log when the signal handler isn't in the expected
# default state
if isinstance(sig, types.BuiltinFunctionType):
if not isinstance(sig, types.BuiltinFunctionType):
LOG.info("Signal state [%s] - previously custom handler.", sig)
elif sig == signal.SIG_IGN:
LOG.info("Signal state [SIG_IGN] - previously ignored.")
Expand All @@ -53,7 +53,7 @@ def inspect_handler(sig: Union[int, Callable, None]) -> None:
LOG.info(
"Signal state [%s] - default way of handling signal was "
"previously in use.",
sig
sig,
)
else:
# this should never happen, unless something in Python changes
Expand Down

0 comments on commit 12b7730

Please sign in to comment.