File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 44 test :
55 strategy :
66 matrix :
7- go-versions : ['1.23', '1. 22']
7+ go-versions : ['1.22']
88 platform : [ubuntu-22.04]
99 environment-variables : [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh]
1010 runs-on : ${{ matrix.platform }}
3131 test-integration :
3232 strategy :
3333 matrix :
34- go-versions : ['1.23', '1. 22']
34+ go-versions : ['1.22']
3535 platform : [ubuntu-22.04]
3636 environment-variables : [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh]
3737 runs-on : ${{ matrix.platform }}
Original file line number Diff line number Diff line change 1515package gce
1616
1717import (
18+ "context"
1819 "os"
1920 "strings"
2021
@@ -48,7 +49,7 @@ func (provider) IsActiveProvider() bool {
4849}
4950
5051func (provider ) GetInstanceType () info.InstanceType {
51- machineType , err := metadata .Get ( "instance/machine-type" )
52+ machineType , err := metadata .GetWithContext ( context . TODO (), "instance/machine-type" )
5253 if err != nil {
5354 return info .UnknownInstance
5455 }
@@ -58,7 +59,7 @@ func (provider) GetInstanceType() info.InstanceType {
5859}
5960
6061func (provider ) GetInstanceID () info.InstanceID {
61- instanceID , err := metadata .Get ( "instance/id" )
62+ instanceID , err := metadata .GetWithContext ( context . TODO (), "instance/id" )
6263 if err != nil {
6364 return info .UnknownInstance
6465 }
You can’t perform that action at this time.
0 commit comments