Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion shell/models/provisioning.cattle.io.cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ export default class ProvCluster extends SteveModel {
}

get mgmtClusterId() {
return this.status?.clusterName;
// when a cluster is created `this` instance isn't immediately updated with `status.clusterName`
// Workaround - Get fresh copy from the store
const pCluster = this.$rootGetters['management/byId'](CAPI.RANCHER_CLUSTER, this.id);

return this.status?.clusterName || pCluster?.status?.clusterName;
}

get mgmt() {
Expand Down