Skip to content

Commit

Permalink
Merge pull request #79 from Mashimiao/bugfix-runtimetest-hostname
Browse files Browse the repository at this point in the history
runtimetest/hostname: small fix for null hostname
  • Loading branch information
Mrunal Patel committed May 26, 2016
2 parents 5130deb + 7ca0a2c commit 366a66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func validateHostname(spec *rspec.Spec) error {
if err != nil {
return err
}
if hostname != spec.Hostname {
if spec.Hostname != "" && hostname != spec.Hostname {
return fmt.Errorf("Hostname expected: %v, actual: %v", spec.Hostname, hostname)
}
return nil
Expand Down

0 comments on commit 366a66e

Please sign in to comment.