From a4cf5500ed7de914cde3f21383fa6d9a350c4420 Mon Sep 17 00:00:00 2001 From: troymc Date: Tue, 12 Apr 2016 17:55:48 +0200 Subject: [PATCH] Fixed slice range bug in fabfile.py --- deploy-cluster-aws/fabfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-cluster-aws/fabfile.py b/deploy-cluster-aws/fabfile.py index 5aba7a83..f385641b 100644 --- a/deploy-cluster-aws/fabfile.py +++ b/deploy-cluster-aws/fabfile.py @@ -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.'