We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a5778e commit a51b593Copy full SHA for a51b593
shell/models/provisioning.cattle.io.cluster.js
@@ -381,7 +381,11 @@ export default class ProvCluster extends SteveModel {
381
}
382
383
get mgmtClusterId() {
384
- return this.status?.clusterName;
+ // when a cluster is created `this` instance isn't immediately updated with `status.clusterName`
385
+ // Workaround - Get fresh copy from the store
386
+ const pCluster = this.$rootGetters['management/byId'](CAPI.RANCHER_CLUSTER, this.id);
387
+
388
+ return this.status?.clusterName || pCluster?.status?.clusterName;
389
390
391
get mgmt() {
0 commit comments