Fix logic to determine the existence of image list
This commit addresses the issue for the prestage orchestration when no
image list file has been uploaded.
The fix is to properly check for the non-existing file.
Test Plan:
PASS:
- Verify prestaging standalone with no image list uploaded
- Verify prestaging orchestration with no image list uploaded
- Verify prestaging with image list provided, default name
- Verify prestaging case with image list provided, non-default name
- Verify prestaging standalone with empty image list uploaded
- ansible fails in this case, as expected
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/833219 /opendev. org/starlingx/ distcloud/ commit/ e101cc165150ab0 75ef945ae88dbc6 1fc7b0a8a7
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit e101cc165150ab0 75ef945ae88dbc6 1fc7b0a8a7
Author: Kyle MacLeod <email address hidden>
Date: Thu Mar 10 22:54:57 2022 -0500
Fix logic to determine the existence of image list
This commit addresses the issue for the prestage orchestration when no
image list file has been uploaded.
The fix is to properly check for the non-existing file.
Test Plan:
PASS:
- Verify prestaging standalone with no image list uploaded
- Verify prestaging orchestration with no image list uploaded
- Verify prestaging with image list provided, default name
- Verify prestaging case with image list provided, non-default name
- Verify prestaging standalone with empty image list uploaded
- ansible fails in this case, as expected
Closes-Bug: 1964556
Signed-off-by: Kyle MacLeod <email address hidden> 0de83e0c352b64d 4b6e2d02889
Change-Id: I22c671968e32b1