1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Lester Wade 2013-04-24 09:45:01 -07:00
parent a63af4fada
commit 6a7a8cda40

View file

@ -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':