Created attachment 1377002 [details]
vpc name not shown
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add ec2 provider
2. Have item with tag: "Name": "" (empty field)
Items have no name/id displayed.
Items with empty names should act as items with no names = display their id instead.
Attached two screenshots. First shows vpc which has empty Name tag and second shows volume with empty Name tag.
Created attachment 1377003 [details]
volume name not displayed
We fixed this bug for images already, see:
However, this bug applies to any inventory type. Instead of fixing it in the parse_* methods, see if you can fix in here:
New commit detected on ManageIQ/manageiq-providers-amazon/hammer:
Author: Ladislav Smola <email@example.com>
AuthorDate: Tue Sep 25 14:45:17 2018 -0400
Commit: Ladislav Smola <firstname.lastname@example.org>
CommitDate: Tue Sep 25 14:45:17 2018 -0400
Merge pull request #482 from AlexanderZagaynov/BZ-1531117_name_tag
avoid blank names by using uids
(cherry picked from commit 4197be8d1dee08a18c87483cf5ada03bebb6f5c1)
app/models/manageiq/providers/amazon/cloud_manager/refresh_parser.rb | 4 +-
app/models/manageiq/providers/amazon/inventory/collector/target_collection.rb | 5 +-
app/models/manageiq/providers/amazon/inventory/parser.rb | 5 +-
app/models/manageiq/providers/amazon/inventory/parser/cloud_manager.rb | 21 +-
app/models/manageiq/providers/amazon/inventory/parser/network_manager.rb | 2 +-
app/models/manageiq/providers/amazon/network_manager/refresh_parser.rb | 19 +-
app/models/manageiq/providers/amazon/parser_helper_methods.rb | 5 +-
app/models/manageiq/providers/amazon/refresh_helper_methods.rb | 5 +-
spec/models/manageiq/providers/amazon/cloud_manager/refresh_parser_spec.rb | 22 +
spec/models/manageiq/providers/amazon/network_manager/refresh_parser_spec.rb | 23 +
spec/models/manageiq/providers/amazon/storage_manager/ebs/refresh_parser_spec.rb | 31 +
11 files changed, 111 insertions(+), 31 deletions(-)
Verified in 22.214.171.124. ID is displayed as name when there is empty tag Name.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.