mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-01 00:45:53 +00:00
Removed vm_compute_id
This commit is contained in:
parent
a6b65fc8fe
commit
40ffe84b77
@ -104,7 +104,7 @@ describe('VmwareService', () => {
|
||||
it('should get available virtual machines', inject([VmwareService], (service: VmwareService) => {
|
||||
service.getVirtualMachines(server).subscribe();
|
||||
|
||||
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.vm_compute_id}/vmware/vms`);
|
||||
const req = httpTestingController.expectOne(`http://127.0.0.1:3080/${environment.current_version}/computes/${environment.compute_id}/vmware/vms`);
|
||||
expect(req.request.method).toEqual('GET');
|
||||
}));
|
||||
});
|
||||
|
@ -31,6 +31,6 @@ export class VmwareService {
|
||||
}
|
||||
|
||||
getVirtualMachines(server: Server): Observable<VmwareVm[]> {
|
||||
return this.httpServer.get<VmwareVm[]>(server, `/computes/${environment.vm_compute_id}/vmware/vms`) as Observable<VmwareVm[]>;
|
||||
return this.httpServer.get<VmwareVm[]>(server, `/computes/${environment.compute_id}/vmware/vms`) as Observable<VmwareVm[]>;
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,5 @@ export const environment = {
|
||||
production: true,
|
||||
electron: true,
|
||||
current_version:'v3',
|
||||
compute_id:'local',
|
||||
vm_compute_id:'vm'
|
||||
compute_id:'local'
|
||||
};
|
||||
|
@ -3,6 +3,5 @@ export const environment = {
|
||||
electron: true,
|
||||
solarputty_download_url: '',
|
||||
current_version:'v3',
|
||||
compute_id:'local',
|
||||
vm_compute_id:'vm'
|
||||
compute_id:'local'
|
||||
};
|
||||
|
@ -4,6 +4,5 @@ export const environment = {
|
||||
githubio: true,
|
||||
solarputty_download_url: '',
|
||||
current_version:'v3',
|
||||
compute_id:'local',
|
||||
vm_compute_id:'vm'
|
||||
compute_id:'local'
|
||||
};
|
||||
|
@ -4,6 +4,5 @@ export const environment = {
|
||||
githubio: false,
|
||||
solarputty_download_url: '',
|
||||
current_version:'v3',
|
||||
compute_id:'local',
|
||||
vm_compute_id:'vm'
|
||||
compute_id:'local'
|
||||
};
|
||||
|
@ -8,8 +8,7 @@ export const environment = {
|
||||
githubio: false,
|
||||
solarputty_download_url: '',
|
||||
current_version:'v3',
|
||||
compute_id:'local',
|
||||
vm_compute_id:'vm'
|
||||
compute_id:'local'
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user