Bug 1511501

Summary: set_network_adapter method erroring out with undefined method `[]' for nil:NilClass')]
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: Greg McCullough <gmccullo>
Status: CLOSED CURRENTRELEASE QA Contact: Alex Newman <anewman>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: anewman, brant.evans, jhardy, ldixon, mkanoor, obarenbo, rmanes, smallamp, tfitzger
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.9.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1508069 Environment:
Last Closed: 2018-03-06 15:08:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1508069    
Bug Blocks:    

Comment 2 CFME Bot 2017-11-29 20:44:51 UTC
New commit detected on ManageIQ/manageiq-providers-vmware/gaprindashvili:
https://github.com/ManageIQ/manageiq-providers-vmware/commit/23b6d983a5037ebaac2c46862990da82d6d2f8fc

commit 23b6d983a5037ebaac2c46862990da82d6d2f8fc
Author:     Adam Grare <agrare>
AuthorDate: Wed Nov 8 14:41:07 2017 -0500
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Nov 14 20:08:50 2017 -0500

    Merge pull request #132 from gmcculloug/normalize_network_adapter
    
    Properly update network hash when the first array element is nil
    (cherry picked from commit 9d93a0dd7242405220c5ea11bbaa3e043d571ae2)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1511501

 .../provision/configuration/network.rb             | 40 ++++++++++------
 .../provision/configuration/network_spec.rb        | 55 ++++++++++++++++++++++
 2 files changed, 81 insertions(+), 14 deletions(-)
 create mode 100644 spec/models/manageiq/providers/vmware/infra_manager/provision/configuration/network_spec.rb