Corrected instance password data check. Previously broken after adding region support.
This commit is contained in:
parent
26646149a9
commit
4b5bea6a32
1 changed files with 1 additions and 1 deletions
2
ec2_vol
2
ec2_vol
|
@ -176,7 +176,7 @@ def main():
|
||||||
|
|
||||||
if device_name is None and instance:
|
if device_name is None and instance:
|
||||||
try:
|
try:
|
||||||
if inst.get_password_data == '':
|
if not ec2.get_password_data(inst.id):
|
||||||
device_name = '/dev/sdf'
|
device_name = '/dev/sdf'
|
||||||
attach = volume.attach(inst.id, device_name)
|
attach = volume.attach(inst.id, device_name)
|
||||||
while volume.attachment_state() != 'attached':
|
while volume.attachment_state() != 'attached':
|
||||||
|
|
Loading…
Reference in a new issue