Revision 1db993d5 lib/backend.py
b/lib/backend.py | ||
---|---|---|
2493 | 2493 |
|
2494 | 2494 |
config.add_section(constants.INISECT_INS) |
2495 | 2495 |
config.set(constants.INISECT_INS, "name", instance.name) |
2496 |
config.set(constants.INISECT_INS, "maxmem", "%d" % |
|
2497 |
instance.beparams[constants.BE_MAXMEM]) |
|
2498 |
config.set(constants.INISECT_INS, "minmem", "%d" % |
|
2499 |
instance.beparams[constants.BE_MINMEM]) |
|
2500 |
# "memory" is deprecated, but useful for exporting to old ganeti versions |
|
2496 | 2501 |
config.set(constants.INISECT_INS, "memory", "%d" % |
2497 |
instance.beparams[constants.BE_MEMORY])
|
|
2502 |
instance.beparams[constants.BE_MAXMEM])
|
|
2498 | 2503 |
config.set(constants.INISECT_INS, "vcpus", "%d" % |
2499 | 2504 |
instance.beparams[constants.BE_VCPUS]) |
2500 | 2505 |
config.set(constants.INISECT_INS, "disk_template", instance.disk_template) |
Also available in: Unified diff