Skip to content

Commit

Permalink
fix(wsl): Put back the "path" argument to wsl_path in ds-identify (#5537
Browse files Browse the repository at this point in the history
)

Got swallowed by
https://github.com/canonical/cloud-init/pull/5116/commits/
da6b5c4

The former commit resulted in usage error from the wslpath
command thus we never found WSL specific data,
disabling cloud-init.
  • Loading branch information
CarlosNihelton authored Jul 23, 2024
1 parent f90f0b8 commit 99ac819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ds-identify
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ dscheck_VMware() {

WSL_path() {
local params="$1" path="$2" val=""
val="$(wslpath "$params" "$1")"
val="$(wslpath "$params" "$path")"
_RET="$val"
}

Expand Down Expand Up @@ -1776,7 +1776,7 @@ dscheck_WSL() {

# Then we can check for any .cloud-init folders for the user
if [ ! -d "$profile_dir/.cloud-init/" ] && [ ! -d "$profile_dir/.ubuntupro/.cloud-init/" ]; then
debug 1 "No .cloud-init directories found"
debug 1 "No .cloud-init directories found in $profile_dir"
return "${DS_NOT_FOUND}"
fi

Expand Down

0 comments on commit 99ac819

Please sign in to comment.