Open aburnheimer opened 11 years ago
cluster.add_host does not seem to respect the --insecure option when used in rvc_exec calls, non-interactively:
cluster.add_host
--insecure
$ rvc user:password@1.2.3.4 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:password@1.2.3.4 -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!
cluster.add_host
does not seem to respect the--insecure
option when used in rvc_exec calls, non-interactively:...as opposed to:
...in the status field of logs in the vSphere client for Windows running on 1.2.3.4, the following shows:
Thanks much for looking into the issue!