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.
2 parents d7f7017 + 37c9a26 commit 9fc2d76Copy full SHA for 9fc2d76
shell/models/provisioning.cattle.io.cluster.js
@@ -369,7 +369,11 @@ export default class ProvCluster extends SteveModel {
369
}
370
371
get mgmtClusterId() {
372
- return this.status?.clusterName;
+ // when a cluster is created `this` instance isn't immediately updated with `status.clusterName`
373
+ // Workaround - Get fresh copy from the store
374
+ const pCluster = this.$rootGetters['management/byId'](CAPI.RANCHER_CLUSTER, this.id);
375
+
376
+ return this.status?.clusterName || pCluster?.status?.clusterName;
377
378
379
get mgmt() {
0 commit comments