mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23422 from cro/gce_sh_home
$HOME should not be used, some shells don't set it.
This commit is contained in:
commit
644eb75fec
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ def __get_ssh_credentials(vm_):
|
|||
'ssh_username', vm_, __opts__, default=os.getenv('USER'))
|
||||
ssh_key = config.get_cloud_config_value(
|
||||
'ssh_keyfile', vm_, __opts__,
|
||||
default=os.getenv('HOME') + '/.ssh/google_compute_engine')
|
||||
default=os.path.expanduser('~/.ssh/google_compute_engine'))
|
||||
return ssh_user, ssh_key
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue