update tests for sethostname

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-03-12 13:08:52 -04:00
parent 4a416c6cf7
commit 7c5a0d5126
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 2 additions and 0 deletions

View File

@ -558,6 +558,8 @@ func (h *Host) SetHostname() error {
)
switch h.Driver.GetProviderType() {
case provider.None:
return nil
case provider.Local:
cmd, err = h.GetSSHCommand(fmt.Sprintf(
"sudo hostname %s && echo \"%s\" | sudo tee /var/lib/boot2docker/etc/hostname",