Commit 2582b225 by Guba Sándor

adding state dict

parent a35db8fd
......@@ -6,6 +6,16 @@ import logging
connection = None
state_dict = {0: 'NOSTATE',
1: 'RUNNING',
2: 'BLOCKED',
3: 'PAUSED',
4: 'SHUTDOWN',
5: 'SHUTOFF',
6: 'CRASHED',
7: 'PMSUSPENDED'
}
def req_connection(original_function):
'''Connection checking decorator for libvirt.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment