Revision fbb2c636
b/lib/backend.py | ||
---|---|---|
2330 | 2330 |
instance.beparams[constants.BE_VCPUS]) |
2331 | 2331 |
config.set(constants.INISECT_INS, 'disk_template', instance.disk_template) |
2332 | 2332 |
config.set(constants.INISECT_INS, 'hypervisor', instance.hypervisor) |
2333 |
config.set(constants.INISECT_INS, "tags", " ".join(instance.GetTags())) |
|
2333 | 2334 |
|
2334 | 2335 |
nic_total = 0 |
2335 | 2336 |
for nic_count, nic in enumerate(instance.nics): |
b/lib/cmdlib.py | ||
---|---|---|
8167 | 8167 |
nics.append(ndict) |
8168 | 8168 |
self.op.nics = nics |
8169 | 8169 |
|
8170 |
if not self.op.tags and einfo.has_option(constants.INISECT_INS, "tags"): |
|
8171 |
self.op.tags = einfo.get(constants.INISECT_INS, "tags").split() |
|
8172 |
|
|
8170 | 8173 |
if (self.op.hypervisor is None and |
8171 | 8174 |
einfo.has_option(constants.INISECT_INS, "hypervisor")): |
8172 | 8175 |
self.op.hypervisor = einfo.get(constants.INISECT_INS, "hypervisor") |
8176 |
|
|
8173 | 8177 |
if einfo.has_section(constants.INISECT_HYP): |
8174 | 8178 |
# use the export parameters but do not override the ones |
8175 | 8179 |
# specified by the user |
Also available in: Unified diff