mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fixed slice range bug in fabfile.py
This commit is contained in:
parent
e8095849bc
commit
a4cf5500ed
4
deploy-cluster-aws/fabfile.py
vendored
4
deploy-cluster-aws/fabfile.py
vendored
@ -43,9 +43,9 @@ def set_hosts(hosts):
|
|||||||
fab set_hosts:one_node init_bigchaindb
|
fab set_hosts:one_node init_bigchaindb
|
||||||
"""
|
"""
|
||||||
if hosts == 'one_node':
|
if hosts == 'one_node':
|
||||||
env.hosts = public_dns_names[0]
|
env.hosts = public_dns_names[:1]
|
||||||
elif hosts == 'two_nodes':
|
elif hosts == 'two_nodes':
|
||||||
env.hosts = public_dns_names[0:1]
|
env.hosts = public_dns_names[:2]
|
||||||
else:
|
else:
|
||||||
raise ValueError('Invalid input to set_hosts.'
|
raise ValueError('Invalid input to set_hosts.'
|
||||||
' Expected one_node or two_nodes.'
|
' Expected one_node or two_nodes.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user