This commit is contained in:
sillyguodong 2023-05-19 16:31:42 +08:00
parent 0b38c4f6c7
commit 3c6d18a2b8
No known key found for this signature in database
GPG key ID: 4A0646FA86256DF4

View file

@ -41,7 +41,7 @@ func runDaemon(ctx context.Context, configFile *string) func(cmd *cobra.Command,
}
if len(cfg.Runner.Labels) > 0 {
// overwirte the labels in the config file to the state file
// overwirte the labels in the config file to the state file.
reg.Labels = cfg.Runner.Labels
if err := config.SaveRegistration(cfg.Runner.File, reg); err != nil {
return fmt.Errorf("failed to save runner config: %w", err)