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:
James E. Blair 2014-09-10 10:37:09 -07:00
parent f637e3bee3
commit e6775bd7b5
1 changed files with 2 additions and 2 deletions

View File

@ -157,8 +157,8 @@ def build_server(
if volume:
vobj = client.volumes.create_server_volume(
server.id, volume, None)
if not vobj:
raise Exception("Couldn't attach volume")
if not vobj:
raise Exception("Couldn't attach volume")
bootstrap_server(server, admin_pass, key, cert, environment, name,
puppetmaster, volume)