Skip to content

Commit

Permalink
livepatch: more specific check for not enabled error
Browse files Browse the repository at this point in the history
  • Loading branch information
orndorffgrant authored and lucasmoura committed Jan 30, 2024
1 parent 64cbbf9 commit d8935ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uaclient/livepatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def status() -> Optional[LivepatchStatusStatus]:
except exceptions.ProcessExecutionError as e:
# only raise an error if there is a legitimate problem, not just lack
# of enablement
if re.match("Machine is not enabled.", e.stderr):
if "Machine is not enabled" in e.stderr:
LOG.warning(e.stderr)
return None
LOG.warning(
Expand Down

0 comments on commit d8935ee

Please sign in to comment.