Fixed slice range bug in fabfile.py

This commit is contained in:
troymc 2016-04-12 17:55:48 +02:00
parent e8095849bc
commit a4cf5500ed

View File

@ -43,9 +43,9 @@ def set_hosts(hosts):
fab set_hosts:one_node init_bigchaindb
"""
if hosts == 'one_node':
env.hosts = public_dns_names[0]
env.hosts = public_dns_names[:1]
elif hosts == 'two_nodes':
env.hosts = public_dns_names[0:1]
env.hosts = public_dns_names[:2]
else:
raise ValueError('Invalid input to set_hosts.'
' Expected one_node or two_nodes.'