Skip to content

Commit

Permalink
Merge pull request #3331 from candlepin/mhorky/ENT-5624-1.29.26
Browse files Browse the repository at this point in the history
[1.29.26] ENT-5624: Properly translate error strings
  • Loading branch information
ptoscano authored Aug 29, 2023
2 parents b03c39c + 08b2ebe commit 46ff386
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/subscription_manager/cli_command/abstract_syspurpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,9 @@ def _create_argparser(self):

def check_syspurpose_support(self, attr):
if self.is_registered() and not self.cp.has_capability('syspurpose'):
print(_("Note: The currently configured entitlement server does not support System Purpose {attr}.".format(
attr=attr)))
print(_(
"Note: The currently configured entitlement server does not support System Purpose {attr}."
).format(attr=attr))

def _check_result(self, expectation, success_msg, command, attr):
if self.store:
Expand All @@ -470,7 +471,7 @@ def _check_result(self, expectation, success_msg, command, attr):
if result and not expectation(result):
advice = SP_ADVICE.format(command=command)
value = result[attr]
msg = _(SP_CONFLICT_MESSAGE.format(attr=attr, download_value=value, advice=advice))
msg = SP_CONFLICT_MESSAGE.format(attr=attr, download_value=value, advice=advice)
system_exit(os.EX_SOFTWARE, msgs=msg)
else:
print(success_msg)

0 comments on commit 46ff386

Please sign in to comment.