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

Creating a Server Profile based on a Template does not autofill its blank attributes with the template's #165

Closed fgbulsoni closed 7 years ago

fgbulsoni commented 7 years ago

Scenario/Intent

Create a new Server Profile by specifying only its name and the serverProfileTemplateUri to which it will be associated, but having all other information retrieved directly from the template.

Environment Details

Steps to Reproduce

Run a manifest with something similar to the following:

oneview_server_profile{'Server Profile Create':
  ensure => 'present',
  data   =>
  {
    name => $server_profile_name,
    serverProfileTemplateUri => $server_profile_template_name,
    serverHardwareUri => $server_hardware_name,
  }
}

Expected Result

It should get other required information, such as enclosureGroupUri or serverHardwareTypeUri from the template if those are specified there.

Actual Result

It fails because these 'required' fields were not passed in.