Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Rawat committed May 4, 2023
1 parent 9519810 commit 56bebd5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ func (fv *FSxWindowsFileServerResource) performHostMount(remotePath string, user

// formatting to keep powershell happy
credsCommand := fmt.Sprintf(psCredentialCommandFormat, username, password)
seelog.Infof("rawahars Creds command is: %s", credsCommand)
credsArg := fmt.Sprintf("-Credential %s", credsCommand)
remotePathArg := fmt.Sprintf("-RemotePath '%s'", remotePath)

Expand All @@ -565,7 +566,7 @@ func (fv *FSxWindowsFileServerResource) performHostMount(remotePath string, user
"-RequirePrivacy $true",
"-ErrorAction Stop",
}
seelog.Debugf("Executing mapping of fsxwindowsfileserver with cmd: %v %v", strings.Join(args[:3], " "), strings.Join(args[4:], " "))
seelog.Debugf("Executing mapping of fsxwindowsfileserver with cmd: %v %v", strings.Join(args[:3], " "), strings.Join(args[3:], " "))

cmd := execCommand("powershell.exe", args...)
out, err := cmd.CombinedOutput()
Expand Down

0 comments on commit 56bebd5

Please sign in to comment.