Skip to content

Commit

Permalink
Merge pull request #109 from smoser/fix/ds-none-create-dirs
Browse files Browse the repository at this point in the history
Fix "none" datasource to create output directory.
  • Loading branch information
smoser authored Nov 17, 2023
2 parents 3620782 + 198e1f7 commit 46a1162
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/cirros/ds/none
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ EOF
search_local() {
local out_d="$1"
local data_d="${out_d}/data"
[ -d "$out_d" ] || mkdir -p "$out_d" ||
{ error "failed to create output dir"; return 1; }
echo "i-dsnone" > "${data_d}/instance-id"
echo 0 > "$out_d/result"
}
Expand Down

0 comments on commit 46a1162

Please sign in to comment.