Revision history [back]

click to hide/show revision 1
initial version

I solved the problem :)

def get_node_task(node_cloud_id):
server = server_exists(node_cloud_id)
if not server:
    raise RuntimeError("Server does not exist")
else:
    for attr, value in vars(server).items():
        if attr == 'OS-EXT-STS:task_state':
            return value