HewlettPackard / oneview-puppet

This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Terraform and Ansible Collection
https://forge.puppet.com/hewlettpackard/oneview
Apache License 2.0
8 stars 17 forks source link

SAS Logical Interconnect Group - Name to URI conversion fails on logicalInterconnectGroupUri fields #151

Closed fgbulsoni closed 7 years ago

fgbulsoni commented 7 years ago

Scenario/Intent

Pass in a name of a SAS LIG instead of a URI in a puppet manifest.

Environment Details

Steps to Reproduce

Run a manifest where a SAS LIG name is given in a LogicalInterconnectGroupURI field.

i.e.:

oneview_enclosure_group{'Enclosure Group Create':
    ensure => 'present',
    data   => {
      name                        => 'TEST_with_sas',
      stackingMode                => 'Enclosure',
      # interconnectBayMappingCount => '8',
      interconnectBayMappings     =>
      [
        {
           interconnectBay             => '1',
           logicalInterconnectGroupUri => 'SASTEST'
         },
         {
           interconnectBay             => '4',
           logicalInterconnectGroupUri => 'SASTEST'
         },
      ],
    }
}

Expected Result

Should automatically swap the name for the URI to make the calls.

Actual Result

Returns a resource not found error, since it is looking strictly for Logical Interconnect Group resources and not SAS Logical Interconnect Group

frippe75 commented 7 years ago

Was just about to open this up but it looks exactly like yersterdays issue. Thanks!

fgbulsoni commented 7 years ago

Was just about to open this up but it looks exactly like yersterdays issue. Thanks!

@frippe75 Fix is in, please be sure to update your repository and let us know if you hit something else. Cheers :octocat: