Skip to content

Commit 222084c

Browse files
committed
Updated cloud servers builder
1 parent 79d4ced commit 222084c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

state.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class CloudServers(ConfigBuilder):
3030
This is builder - it will insert into config multiple objects
3131
if type CloudServer and will calculate hostname for each
3232
'''
33-
def __init__(self, host_name, num_servers):
34-
super(CloudServers, self).__init__(host_name=host_name,
33+
def __init__(self, base_host_name, num_servers):
34+
super(CloudServers, self).__init__(host_name=base_host_name,
3535
num_servers=num_servers)
3636

3737
def build(self):
@@ -116,7 +116,7 @@ def conf(env_name):
116116
# CloudServers is a multiconf builder - it will not be present in
117117
# configuration. Instead there will be CloudServer objects based on
118118
# num_servers parameter
119-
with CloudServers(host_name='something', num_servers=0) as cloud_servers:
119+
with CloudServers(base_host_name='something', num_servers=0) as cloud_servers:
120120
cloud_servers.setattr('num_servers', devlocal=1, dev=2, cloud=4)
121121

122122
# GitRepo is set to be a required element of a project

0 commit comments

Comments
 (0)