Skip to content

Commit

Permalink
Fix reserved_memory annotation key value in
Browse files Browse the repository at this point in the history
resource_virtualmachine_constructor.go
  • Loading branch information
TachunLin authored and FrankYang0529 committed Feb 13, 2023
1 parent 0268f7a commit 617a7d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c *Constructor) Setup() util.Processors {
reservedMemory := i.(string)
if reservedMemory != "" {
vmBuilder.Annotations(map[string]string{
harvesterutil.AnnotationReservedMemory: i.(string),
harvesterutil.AnnotationReservedMemory: reservedMemory,
})
} else {
delete(vmBuilder.VirtualMachine.Annotations, harvesterutil.AnnotationReservedMemory)
Expand Down

0 comments on commit 617a7d4

Please sign in to comment.