Skip to content

Commit

Permalink
Fix: corosync: use os.env instead of os.getenv for consistency (bsc#1…
Browse files Browse the repository at this point in the history
…205925)
  • Loading branch information
nicholasyang2022 committed May 22, 2024
1 parent 955bb1b commit 4ce0593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/corosync.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def configure_two_node(removing: bool = False, qdevice_adding: bool = False) ->


def conf():
return os.getenv('COROSYNC_MAIN_CONFIG_FILE', '/etc/corosync/corosync.conf')
return os.environ.get('COROSYNC_MAIN_CONFIG_FILE', '/etc/corosync/corosync.conf')


def check_tools():
Expand Down

0 comments on commit 4ce0593

Please sign in to comment.