Revision a2f92677
b/daemons/ganeti-rapi | ||
---|---|---|
163 | 163 |
|
164 | 164 |
|
165 | 165 |
if __name__ == '__main__': |
166 |
|
|
167 | 166 |
main() |
b/lib/rapi/connector.py | ||
---|---|---|
25 | 25 |
import cgi |
26 | 26 |
import re |
27 | 27 |
|
28 |
from ganeti import constants
|
|
29 |
from ganeti import http
|
|
28 |
from ganeti import constants |
|
29 |
from ganeti import http |
|
30 | 30 |
|
31 |
from ganeti.rapi import baserlib
|
|
31 |
from ganeti.rapi import baserlib |
|
32 | 32 |
from ganeti.rapi import rlib1 |
33 | 33 |
from ganeti.rapi import rlib2 |
34 | 34 |
|
35 |
# the connection map created at the end of this file |
|
35 |
# the connection map is created at the end of this file
|
|
36 | 36 |
CONNECTOR = {} |
37 | 37 |
|
38 | 38 |
|
... | ... | |
99 | 99 |
|
100 | 100 |
def GET(self): |
101 | 101 |
"""Show the list of mapped resources. |
102 |
|
|
102 |
|
|
103 | 103 |
Returns: |
104 | 104 |
A dictionary with 'name' and 'uri' keys for each of them. |
105 | 105 |
|
Also available in: Unified diff