Add wait of image disk after upload (#55426)

This commit is contained in:
Ondra Machacek 2019-04-26 11:36:55 +02:00 committed by ansibot
parent 0679fbc1d9
commit 213501a2cc

View file

@ -401,7 +401,7 @@ def transfer(connection, module, direction, transfer_func):
raise Exception(
"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()
wait(
service=disks_service.service(module.params['id']),