[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] Possibly addition to python api binding virDomain class



In the python bindings of libvirt, could we please add the following code to the virDomain class?  

def state(self):
    """return the state of the dom object"""
    return self.info()[0]

This helper function would make the world of difference when coding against the libvirt api. 

--

  Russell J Ballestrini

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]