feature #1791: proper state checking
feature #1791: proper state checking

OpenNebula/one,hsanjuan/one,abelCoronado93/one,atodorov-storpool/one,alvarosimon/one,unistra/one,fasrc/one,cloudweavers/one,fasrc/one,baby-gnu/one,baby-gnu/one,ohamada/one,OpenNebula/one,tuxmea/one,dberzano/opennebula-torino,ggalancs/one,ohamada/one,Terradue/one,hsanjuan/one,unistra/one,OpenNebula/one,ohamada/one,abelCoronado93/one,baby-gnu/one,hsanjuan/one,goberle/one,spirit03/one,abelCoronado93/one,ohamada/one,alvarosimon/one,ggalancs/one,dberzano/opennebula-torino,Terradue/one,Terradue/one,hsanjuan/one,alvarosimon/one,alvarosimon/one,cloudweavers/one,fasrc/one,Terradue/one,goberle/one,abelCoronado93/one,fasrc/one,mattthias/one,ohamada/one,spirit03/one,cloudweavers/one,ggalancs/one,cloudweavers/one,dberzano/opennebula-torino,ggalancs/one,mattthias/one,goberle/one,abelCoronado93/one,ggalancs/one,Terradue/one,tuxmea/one,cloudweavers/one,goberle/one,alvarosimon/one,ggalancs/one,juanmont/one,OpenNebula/one,spirit03/one,alvarosimon/one,atodorov-storpool/one,hsanjuan/one,atodorov-storpool/one,OpenNebula/one,fasrc/one,atodorov-storpool/one,hsanjuan/one,Terradue/one,mattthias/one,spirit03/one,dberzano/opennebula-torino,mattthias/one,juanmont/one,OpenNebula/one,ggalancs/one,OpenNebula/one,juanmont/one,baby-gnu/one,baby-gnu/one,abelCoronado93/one,spirit03/one,atodorov-storpool/one,tuxmea/one,tuxmea/one,Terradue/one,unistra/one,atodorov-storpool/one,unistra/one,baby-gnu/one,ohamada/one,unistra/one,ohamada/one,goberle/one,juanmont/one,tuxmea/one,cloudweavers/one,dberzano/opennebula-torino,goberle/one,hsanjuan/one,spirit03/one,dberzano/opennebula-torino,abelCoronado93/one,hsanjuan/one,atodorov-storpool/one,cloudweavers/one,unistra/one,mattthias/one,juanmont/one,juanmont/one,mattthias/one,OpenNebula/one,spirit03/one,baby-gnu/one,baby-gnu/one,fasrc/one,tuxmea/one,alvarosimon/one,alvarosimon/one,spirit03/one,ggalancs/one,atodorov-storpool/one,goberle/one,ohamada/one,Terradue/one,unistra/one,juanmont/one,mattthias/one,juanmont/one,tuxmea/one,abelCoronado93/one,cloudweavers/one,tuxmea/one,fasrc/one,goberle/one,dberzano/opennebula-torino,juanmont/one,atodorov-storpool/one,mattthias/one,OpenNebula/one,fasrc/one,unistra/one