Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit-hardware throws LookupError when adding previously absent hardware #4

Closed
glennmatthews opened this issue Jul 8, 2014 · 1 comment
Labels

Comments

@glennmatthews
Copy link
Owner

cot edit-hardware works fine when editing existing hardware types, but when attempting to create hardware of a type not previously present in an OVF, it errors out:

$ ./bin/cot edit-hardware COT/tests/minimal.ovf --cpus 1 -o test.ovf
Traceback (most recent call last):
  File "./bin/cot", line 64, in <module>
    COT.cli.main()
  File "./COT/cli.py", line 229, in main
    args.func(args)
  File "./COT/edit_hardware.py", line 77, in edit_hardware
    vm.set_cpu_count(args.cpus, args.profiles)
  File "./COT/ovf.py", line 734, in set_cpu_count
    profile_list)
  File "./COT/ovf.py", line 2261, in set_value_for_all_items
    .format(resource_type))
LookupError: No items of type cpu found!
glennmatthews added a commit that referenced this issue Sep 24, 2014
glennmatthews added a commit that referenced this issue Sep 24, 2014
@glennmatthews
Copy link
Owner Author

Fixed by 9ddec18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant