Red Hat Bugzilla – Bug 1464529
the name of amazon providers aren't synced with the name of their network manager
Last modified: 2017-10-18 04:49:44 EDT
Description of problem:
the name of amazon providers aren't synced with the name of their networks - if you rename an amazon provider, the name of the network manager associated won't change
Version-Release number of selected component (if applicable):
all the time (customer environment)
Steps to Reproduce:
1. Add a new AWS provider: Compute/Cloud/Providers -> Configuration/Add a new cloud provider -> Insert provider data.
2. Verification that the provider validates and collects information.
3. Modify the provider: Inside the provider -> Configuration / Edit this cloud Provider -> Change the name / Validate / Save.
from the provider url (ems_cloud/1000000000001) we can see how the name of the provider is modified, but not the name of the Network Manager.
the name of the network manager is kept in sync with the name of the network provider
This also ties into http://talk.manageiq.org/t/rethinking-providers-and-managers/2494/5
Maybe the name of the provider should be taken from the parent manager until we figure out a better way of organizing the relationships
So maybe just delegate the `name` attr_reader method to the parent_manager will solve this. In the end its just a display thing
delegating to parent_manager: https://github.com/ManageIQ/manageiq/pull/16067