Skip to content

Commit

Permalink
Merge fb566f6 into fd7e48e
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Oct 30, 2018
2 parents fd7e48e + fb566f6 commit 21882e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ func doUpdate(c *cli.Context) error {
if needUpdateHost {
host, err := client.FindHost(hostID)
logger.DieIf(err)
meta := host.Meta
name := ""
if optName == "" {
name = host.Name
Expand All @@ -380,7 +379,8 @@ func doUpdate(c *cli.Context) error {
param := &mkr.UpdateHostParam{
Name: name,
DisplayName: displayname,
Meta: meta,
Meta: host.Meta,
Interfaces: host.Interfaces,
}
if needUpdateRolesInHostUpdate {
param.RoleFullnames = optRoleFullnames
Expand Down

0 comments on commit 21882e6

Please sign in to comment.