Check if template_vm is set when recreating config files (#131)

This commit is contained in:
Marek Marczykowski 2011-03-24 21:44:07 -04:00
parent 24b5c24c25
commit f2567cbf71

View File

@ -18,7 +18,7 @@ def main():
print templ, 'is not a template'
sys.exit(1)
for vm in qvm_collection.values():
if vm.is_appvm() and vm.template_vm.qid == tvm.qid:
if vm.template_vm is not None and vm.template_vm.qid == tvm.qid:
vm.create_config_file()
main()