Merged in Build-bug-fix (pull request #16)
Build bug fix due to an incorrect import Approved-by: Pradyumna Kaushik <pkaushi1@binghamton.edu>
This commit is contained in:
commit
bb73236421
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