Fix variable ref error in launch node
The new code to create volumes incorrectly affects the non-volume case due to an indentation bug. This corrects that. Change-Id: I18eb1222447393e769fbbbf550407bf103b11e99
This commit is contained in:
parent
f637e3bee3
commit
e6775bd7b5
@ -157,8 +157,8 @@ def build_server(
|
|||||||
if volume:
|
if volume:
|
||||||
vobj = client.volumes.create_server_volume(
|
vobj = client.volumes.create_server_volume(
|
||||||
server.id, volume, None)
|
server.id, volume, None)
|
||||||
if not vobj:
|
if not vobj:
|
||||||
raise Exception("Couldn't attach volume")
|
raise Exception("Couldn't attach volume")
|
||||||
|
|
||||||
bootstrap_server(server, admin_pass, key, cert, environment, name,
|
bootstrap_server(server, admin_pass, key, cert, environment, name,
|
||||||
puppetmaster, volume)
|
puppetmaster, volume)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user