Skip to content

[backport] scripts/attach-static-vdis: Toggle nullglob to fix behavior on empty dir - #7205

Open
last-genius wants to merge 1 commit into
xapi-project:26.1-lcmfrom
last-genius:asv/26.1-static-vdis-fix
Open

[backport] scripts/attach-static-vdis: Toggle nullglob to fix behavior on empty dir#7205
last-genius wants to merge 1 commit into
xapi-project:26.1-lcmfrom
last-genius:asv/26.1-static-vdis-fix

Conversation

@last-genius

Copy link
Copy Markdown
Contributor

Backport of #7204

If STATE_DIR exists but is not empty, then globs for it in the form of
STATE_DIR/* and STATE_DIR/*/vdi-uuid will be passed in literal form, causing
errors like:

    cat: /etc/xensource/static-vdis-test/*/vdi-uuid: No such file or directory

Toggle nullglob instead, which turns the whole glob string empty and does not
enter the body of the loop iterating over the matches.

Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>
(cherry picked from commit ae4d3ec)
@last-genius
last-genius force-pushed the asv/26.1-static-vdis-fix branch from 13f7c20 to 5692fde Compare August 3, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants