Skip to content

Commit

Permalink
Fix click view logs option on vm dashboard can't display log entry
Browse files Browse the repository at this point in the history
  • Loading branch information
brandboat authored and torchiaf committed Mar 4, 2024
1 parent 081601b commit 602d85d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/harvester/models/kubevirt.io.virtualmachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ export default class VirtVm extends HarvesterResource {
label: this.nameDisplay,
icon: 'file',
component: 'ContainerLogs',
attrs: { pod: this.podResource }
attrs: {
pod: this.podResource,
initialContainer: this.podResource.metadata.annotations['kubectl.kubernetes.io/default-container']
}
},
{ root: true }
);
Expand Down

0 comments on commit 602d85d

Please sign in to comment.