Skip to content

Commit

Permalink
Update cstarcli.py
Browse files Browse the repository at this point in the history
Read host_file lines without newline
  • Loading branch information
rjablonovsky authored and adejanovski committed Apr 7, 2020
1 parent d2c549b commit d72bb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstar/cstarcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def execute_command(args):

if args.host_file:
with open(args.host_file) as f:
hosts = f.readlines()
hosts = f.read().splitlines()

if args.host:
hosts = args.host
Expand Down

0 comments on commit d72bb9e

Please sign in to comment.