e2e/framework: don't require NOMAD_ADDR and instead rely on defaults

This commit is contained in:
Nick Ethier
2018-07-05 14:05:12 -04:00
parent 4fba59748f
commit 2f9d663bba

View File

@@ -49,11 +49,6 @@ func (p *singleClusterProvisioner) ProvisionCluster(opts ProvisionerOptions) (*C
Name: opts.Name,
}
// Nomad client is required
if len(os.Getenv("NOMAD_ADDR")) == 0 {
return nil, fmt.Errorf("environment variable NOMAD_ADDR not set")
}
// Build Nomad api client
nomadClient, err := napi.NewClient(napi.DefaultConfig())
if err != nil {