one icon indicating copy to clipboard operation
one copied to clipboard

vcenter vm, get_one_item with id

Open Semedi opened this issue 8 years ago • 0 comments

Bug Report

Version of OpenNebula

  • [ ] 5.2.2
  • [ ] 5.4.0
  • [ ] 5.4.1
  • [ ] 5.4.2
  • [ ] 5.4.3
  • [ ] 5.4.4
  • [ ] 5.4.5
  • [ ] 5.4.6
  • [ ] 5.4.7
  • [x] Development build

Component

  • [ ] Authorization (LDAP, x509 certs...)
  • [ ] Command Line Interface (CLI)
  • [ ] Contextualization
  • [ ] Documentation
  • [ ] Federation and HA
  • [ ] Host, Clusters and Monitorization
  • [ ] KVM
  • [ ] Networking
  • [ ] Orchestration (OpenNebula Flow)
  • [ ] Packages
  • [ ] Scheduler
  • [ ] Storage & Images
  • [ ] Sunstone
  • [ ] Upgrades
  • [ ] User, Groups, VDCs and ACL
  • [x] vCenter

Description

The method get_one_item it is being used in many parts of the code. This method ALWAYS search with find_by_ref for the desired one id, this is not neccesary due to we have always the one id.

Also this leads into a lot of problems with find_by_ref method.

Expected Behavior

Accept ID as parameter

Semedi avatar Feb 19 '18 09:02 Semedi