aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/instance')
-rw-r--r--pkg/instance/execprog.go4
-rw-r--r--pkg/instance/instance.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/instance/execprog.go b/pkg/instance/execprog.go
index 564889ba2..6a365cdb7 100644
--- a/pkg/instance/execprog.go
+++ b/pkg/instance/execprog.go
@@ -18,7 +18,7 @@ import (
"github.com/google/syzkaller/vm"
)
-type ExecutorLogger func(int, string, ...interface{})
+type ExecutorLogger func(int, string, ...any)
type OptionalConfig struct {
Logf ExecutorLogger
@@ -84,7 +84,7 @@ func SetupExecProg(vmInst *vm.Instance, mgrCfg *mgrconfig.Config, reporter *repo
}
}
if ret.Logf == nil {
- ret.Logf = func(int, string, ...interface{}) {}
+ ret.Logf = func(int, string, ...any) {}
}
return ret, nil
}
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index 1d0adc5d6..d8b3a8f71 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -193,7 +193,7 @@ func SetConfigImage(cfg *mgrconfig.Config, imageDir string, reliable bool) error
if keyFile := filepath.Join(imageDir, "key"); osutil.IsExist(keyFile) {
cfg.SSHKey = keyFile
}
- vmConfig := make(map[string]interface{})
+ vmConfig := make(map[string]any)
if err := json.Unmarshal(cfg.VM, &vmConfig); err != nil {
return fmt.Errorf("failed to parse VM config: %w", err)
}
@@ -218,7 +218,7 @@ func SetConfigImage(cfg *mgrconfig.Config, imageDir string, reliable bool) error
}
func OverrideVMCount(cfg *mgrconfig.Config, n int) error {
- vmConfig := make(map[string]interface{})
+ vmConfig := make(map[string]any)
if err := json.Unmarshal(cfg.VM, &vmConfig); err != nil {
return fmt.Errorf("failed to parse VM config: %w", err)
}