func (bsn *ScaleioNode) UpdateScaleIOState() *types.ScaleIOFramework {
	bsn.State = WaitForStableState(bsn.GetState)
	bsn.Node = GetSelfNode(bsn.State, bsn.Config.ExecutorID)
	return bsn.State
}
UpdateScaleIOState updates the state of the framework
package common
import (
	"bytes"
	"encoding/json"
	"io"
	"io/ioutil"
	"net/http"
	"strings"
	"time"
	log "github.com/Sirupsen/logrus"
	xplatform "github.com/dvonthenen/goxplatform"
	config "github.com/codedellemc/scaleio-framework/scaleio-executor/config"
	types "github.com/codedellemc/scaleio-framework/scaleio-scheduler/types"
)
type ScaleioNode struct {
	Config         *config.Config
	RebootRequired bool
	Node           *types.ScaleIONode
	State          *types.ScaleIOFramework
	GetState       RetrieveState
}
func (bsn *ScaleioNode) GetSelfNode() *types.ScaleIONode {
	return bsn.Node
}