From 6a7a8cda40e751587e2ed9c7df3c1644f175c9f0 Mon Sep 17 00:00:00 2001 From: Lester Wade Date: Wed, 24 Apr 2013 09:45:01 -0700 Subject: [PATCH] Corrected instance password data check. Previously broken after adding region support. --- library/ec2_vol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ec2_vol b/library/ec2_vol index bf6435fd07..2899a47d59 100644 --- a/library/ec2_vol +++ b/library/ec2_vol @@ -176,7 +176,7 @@ def main(): if device_name is None and instance: try: - if inst.get_password_data == '': + if not ec2.get_password_data(inst.id): device_name = '/dev/sdf' attach = volume.attach(inst.id, device_name) while volume.attachment_state() != 'attached':