From e6775bd7b53c13d190b9ce870108691856b78285 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 10 Sep 2014 10:37:09 -0700 Subject: [PATCH] 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 --- launch/launch-node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch/launch-node.py b/launch/launch-node.py index b162086ce5..ed7cda3d40 100755 --- a/launch/launch-node.py +++ b/launch/launch-node.py @@ -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)