Revision 8b3fd458 lib/hypervisor/hv_fake.py
b/lib/hypervisor/hv_fake.py | ||
---|---|---|
122 | 122 |
try: |
123 | 123 |
fh = file(file_name, "w") |
124 | 124 |
try: |
125 |
fh.write("0\n%d\n%d\n" % (instance.memory, instance.vcpus)) |
|
125 |
fh.write("0\n%d\n%d\n" % |
|
126 |
(instance.beparams[constants.BE_MEMORY], |
|
127 |
instance.beparams[constants.BE_VCPUS])) |
|
126 | 128 |
finally: |
127 | 129 |
fh.close() |
128 | 130 |
except IOError, err: |
Also available in: Unified diff