Skip to content
  • Jose A. Lopes's avatar
    Add Python hypervisor instance state · a3f0f306
    Jose A. Lopes authored
    
    
    Add 'HvInstanceState' which represents the state of an instance
    (either 'running' or 'shutdown') and fix the remaining hypervisor
    backends to return a value of this type.  Before this patch, each
    backend was returning their own value, some were returning strings,
    others integers.  However, the value that represents the state of an
    instance was never actually used in Ganeti, until instance shutdown
    detection became necessary.
    
    Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
    Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
    a3f0f306