Permalink
Browse files

Not a list but a tuple

  • Loading branch information...
1 parent 3416bbd commit 8f545621bd3cc8aae3b82d67ab029edb8994dbb3 dhubbard committed Aug 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sshmap/sshmap.py
View
@@ -444,7 +444,7 @@ def run(host_range, command, username=None, password=None, sudo=False,
utility.status_info(output_callback, 'Looking up hosts')
# Expand the host range if we were passed a string host list
- if isinstance(host_range, [unicode, str]):
+ if isinstance(host_range, (unicode, str)):
hosts = hostlists.expand(hostlists.range_split(host_range))
else:
hosts = host_range

0 comments on commit 8f54562

Please sign in to comment.