Add wait of image disk after upload (#55426)
parent
0679fbc1d9
commit
213501a2cc
|
@ -401,7 +401,7 @@ def transfer(connection, module, direction, transfer_func):
|
||||||
raise Exception(
|
raise Exception(
|
||||||
"Error occurred while uploading image. The transfer is in %s" % transfer.phase
|
"Error occurred while uploading image. The transfer is in %s" % transfer.phase
|
||||||
)
|
)
|
||||||
if module.params.get('logical_unit'):
|
if not module.params.get('logical_unit'):
|
||||||
disks_service = connection.system_service().disks_service()
|
disks_service = connection.system_service().disks_service()
|
||||||
wait(
|
wait(
|
||||||
service=disks_service.service(module.params['id']),
|
service=disks_service.service(module.params['id']),
|
||||||
|
|
Loading…
Reference in New Issue