Skip to content

Commit

Permalink
The page Cluster: Create Harvester crashes when the vgpudevice requ…
Browse files Browse the repository at this point in the history
…est fails

Related to: rancher#13119

Signed-off-by: Volker Theile <vtheile@suse.com>
  • Loading branch information
votdev committed Jan 15, 2025
1 parent 1398d96 commit 0e52568
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/harvester-manager/machine-config/harvester.vue
Original file line number Diff line number Diff line change
Expand Up @@ -744,11 +744,12 @@ export default {
if (clusterId) {
const url = `/k8s/clusters/${ clusterId }/v1`;
const vGpus = await this.$store.dispatch('cluster/request', { url: `${ url }/${ HCI.VGPU_DEVICE }` });
let deviceCapacity = null;
let vGpus = null ;
try {
vGpus = await this.$store.dispatch('cluster/request', { url: `${ url }/${ HCI.VGPU_DEVICE }` });
const harvesterCluster = await this.$store.dispatch('cluster/request', { url: `${ url }/harvester/cluster/local` });
if (harvesterCluster?.links?.deviceCapacity) {
Expand Down

0 comments on commit 0e52568

Please sign in to comment.