Removed the import statement which was importing offerUtils from electron-archive. This results in build failure is electron-archive is a local package

This commit is contained in:
Abhishek Jain 2017-03-25 21:11:24 -04:00
parent 84c14f0c2f
commit 806ac6fa86

View file

@ -1,7 +1,6 @@
package offerUtils package offerUtils
import ( import (
"bitbucket.org/sunybingcloud/electron-archive/utilities/offerUtils"
"bitbucket.org/sunybingcloud/electron/constants" "bitbucket.org/sunybingcloud/electron/constants"
mesos "github.com/mesos/mesos-go/mesosproto" mesos "github.com/mesos/mesos-go/mesosproto"
"log" "log"
@ -74,7 +73,7 @@ func UpdateEnvironment(offer *mesos.Offer) {
// Add this host. // Add this host.
constants.Hosts[host] = struct{}{} constants.Hosts[host] = struct{}{}
// Get the power class of this host. // Get the power class of this host.
class := offerUtils.PowerClass(offer) class := PowerClass(offer)
log.Printf("Registering the power class... Host [%s] --> PowerClass [%s]", host, class) log.Printf("Registering the power class... Host [%s] --> PowerClass [%s]", host, class)
// If new power class, register the power class. // If new power class, register the power class.
if _, ok := constants.PowerClasses[class]; !ok { if _, ok := constants.PowerClasses[class]; !ok {