Skip to content

Commit

Permalink
Merge pull request #1591 from rudyfly/bugfix
Browse files Browse the repository at this point in the history
bugfix: typo code comments
  • Loading branch information
Ace-Tang authored Jun 26, 2018
2 parents a8b169c + c11d05b commit b5b25ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/update_daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/spf13/cobra"
)

// updateDescription is used to describe updatedaemon command in detail and auto generate command doc.
// daemonUpdateDescription is used to describe updatedaemon command in detail and auto generate command doc.
var daemonUpdateDescription = "Update daemon's configurations, if daemon is stoped, it will just update config file. " +
"Online update just including: image proxy, label, offline update including: manager white list, debug level, " +
"execute root directory, bridge name, bridge IP, fixed CIDR, defaut gateway, iptables, ipforwark, userland proxy" +
Expand Down Expand Up @@ -108,6 +108,7 @@ func (udc *DaemonUpdateCommand) daemonUpdateRun(args []string) error {
return nil
}

// updateDaemonConfigFile is just used to update config file.
func (udc *DaemonUpdateCommand) updateDaemonConfigFile() error {
// read config from file.
contents, err := ioutil.ReadFile(udc.configFile)
Expand Down

0 comments on commit b5b25ae

Please sign in to comment.