Skip to content

Commit

Permalink
Fix: report: When 'core.no_ssh' set to 'yes', crm report works in loc…
Browse files Browse the repository at this point in the history
…al mode (bsc#1228899)
  • Loading branch information
liangxin1300 committed Aug 9, 2024
1 parent e3c3a5a commit 709eb21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crmsh/report/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ def parse_argument(argv):
else:
utillib.log_fatal("Wrong format for from_time in /etc/crm/crm.conf; (-[1-9][0-9]*[YmdHM])")

if config.core.no_ssh:
logger.error("ssh-related operations are disabled. crm report works in local mode.")
constants.NO_SSH = True


def run():

Expand Down

0 comments on commit 709eb21

Please sign in to comment.