Skip to content

Commit

Permalink
Ignore blank lines in host_list file
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkataNaladala94 committed May 6, 2024
1 parent 01b698f commit cd187c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medusa/restore_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _populate_hostmap(self):
# Remove leading/trailing whitespace
_line = line.strip()
# Ignore comment lines
if not _line or _line.startswith('#'):
if not _line or _line.startswith('#'):
continue
seed, target, source = _line.split(self.config.storage.host_file_separator)
# in python, bool('False') evaluates to True. Need to test the membership as below
Expand Down

0 comments on commit cd187c9

Please sign in to comment.