mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 21:01:13 +00:00
Merge pull request #2772 from lwade/ec2_volattr
Corrected instance password data check. Previously broken after adding ...
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user