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:
ajain13 2017-03-26 01:23:32 +00:00 committed by Pradyumna Kaushik
commit bb73236421

View file

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