Changing vCenter Url to take only fqdn of vCenter Server

This commit is contained in:
Subrahmanyam Mandavilli 2015-12-24 10:15:50 +05:30
Родитель 4213072ca7
Коммит b8dea9bad3
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -10,7 +10,7 @@ export class VmOperations {
public static getCmdCommonArgs(): string {
var cmdArgs = "";
var vCenterConnectionName: string = tl.getInput("vCenterConnection", true);
var vCenterUrl: string = tl.getEndpointUrl(vCenterConnectionName, false);
var vCenterUrl: string = tl.getEndpointUrl(vCenterConnectionName, false) + "sdk/vimService";
var endPointAuthCreds = tl.getEndpointAuthorization(vCenterConnectionName, false)["parameters"];
var vCenterUserName: string = this.escapeDoubleQuotes(endPointAuthCreds["username"]);
var vCenterPassword: string = this.escapeDoubleQuotes(endPointAuthCreds["password"]);

Просмотреть файл

@ -44,7 +44,7 @@ describe("getCmdCommonArgs", (): void => {
var cmdArgs = vmOperations.VmOperations.getCmdCommonArgs();
cmdArgs.should.contain("-vCenterUrl \"" + dummyEndpointUrl + "\"");
cmdArgs.should.contain("-vCenterUrl \"" + dummyEndpointUrl + "sdk/vimService\"");
cmdArgs.should.contain("-vCenterUserName \"dummyuser\"");
cmdArgs.should.contain("-vCenterPassword \"dummypassword\"");
cmdArgs.should.contain("-vmList \"" + dummyVmList + "\"");