Commit 6a7a8cda by Lester Wade

Corrected instance password data check. Previously broken after adding region support.

parent a63af4fa
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment