Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

cluster.add_host does not respect insecure when non-interactive #80

Open
aburnheimer opened this issue Aug 8, 2013 · 0 comments
Open

Comments

@aburnheimer
Copy link

cluster.add_host does not seem to respect the --insecure option when used in rvc_exec calls, non-interactively:

$ rvc user:[email protected]
0 /
1 1.2.3.4/
> cd /1.2.3.4/my_datacenter/my_host
/1.2.3.4/my_datacenter/my_host> cluster.add_host -k new_cluster/ 5.6.7.8 -u jack -p splat
AddHost ZZ-TBD: SSLVerifyFault: Authenticity of the host's SSL certificate is not verified.
D: running ❲
   . . . command succeeds . . .

...as opposed to:

$ cat script_to_run.rvc
rvc_exec "cd /1.2.3.4/my_datacenter/my_host"
rvc_exec "cluster.add_host -k new_cluster/ 5.6.7.8 -u jack -p splat"
$ rvc user:[email protected] -s script_to_run.rvc
$ echo $?
0
$       # . . . command appears to succeed, but . . .

...in the status field of logs in the vSphere client for Windows running on 1.2.3.4, the following shows:

Authenticity of the host's SSL certificate is not verified.

Thanks much for looking into the issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant