Skip to content

Commit

Permalink
lxd/containers: Also clear the host_name volatile
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed May 24, 2017
1 parent 877744a commit 85a9930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxd/container_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1868,8 +1868,8 @@ func (c *containerLXC) startCommon() (string, error) {
continue
}

// The only device keys we care about are name and hwaddr
if !shared.StringInSlice(fields[2], []string{"name", "hwaddr"}) {
// The only device keys we care about are name, hwaddr and host_name
if !shared.StringInSlice(fields[2], []string{"name", "hwaddr", "host_name"}) {
continue
}

Expand Down

0 comments on commit 85a9930

Please sign in to comment.