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:
parent
84c14f0c2f
commit
806ac6fa86
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Reference in a new issue