Skip to content

Commit

Permalink
Remove RegistryRm from RuntimeConfig
Browse files Browse the repository at this point in the history
See lf-edge#827

Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
  • Loading branch information
uncleDecart committed Dec 9, 2022
1 parent 3650295 commit 43528b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/edenStop.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func newStopCmd(configName, verbosity *string) *cobra.Command {
cfg := &openevec.EdenSetupArgs{}
var vmName string
var adamRm bool
var adamRm, registryRm bool

var stopCmd = &cobra.Command{
Use: "stop",
Expand All @@ -24,7 +24,7 @@ func newStopCmd(configName, verbosity *string) *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
eden.StopEden(
adamRm, cfg.Runtime.RedisRm,
cfg.Runtime.RegistryRm, cfg.Runtime.EServerRm,
registryRm, cfg.Runtime.EServerRm,
cfg.Eve.Remote, cfg.Eve.Pid,
swtpmPidFile(cfg), cfg.Sdn.PidFile,
cfg.Eve.DevModel, vmName,
Expand All @@ -38,7 +38,7 @@ func newStopCmd(configName, verbosity *string) *cobra.Command {
}

stopCmd.Flags().BoolVarP(&adamRm, "adam-rm", "", false, "adam rm on stop")
stopCmd.Flags().BoolVarP(&cfg.Runtime.RegistryRm, "registry-rm", "", false, "registry rm on stop")
stopCmd.Flags().BoolVarP(&registryRm, "registry-rm", "", false, "registry rm on stop")
stopCmd.Flags().BoolVarP(&cfg.Runtime.RedisRm, "redis-rm", "", false, "redis rm on stop")
stopCmd.Flags().BoolVarP(&cfg.Runtime.EServerRm, "eserver-rm", "", false, "eserver rm on stop")
stopCmd.Flags().StringVarP(&cfg.Eve.Pid, "eve-pid", "", filepath.Join(currentPath, defaults.DefaultDist, "eve.pid"), "file with EVE pid")
Expand Down
1 change: 0 additions & 1 deletion pkg/openevec/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ type RegistryConfig struct {
}

type RuntimeConfig struct {
RegistryRm bool `cobraflag:"registry-rm"`
RedisRm bool `cobraflag:"redis-rm"`
EServerRm bool `cobraflag:"eserver-rm"`
CurrentContext bool `cobraflag:"current-context"`
Expand Down

0 comments on commit 43528b8

Please sign in to comment.