Fix for salt-cloud when ssh key used to auth and using sudo.
Fix for salt-cloud when ssh key used to auth and using sudo.

Fixes #24870

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt