Method: HPE3PAR_API#cpg_ldlayout_map
- Defined in:
- lib/puppet/util/hpe3par_api.rb
#cpg_ldlayout_map(ldlayout_hash) ⇒ Object
396 397 398 399 400 401 402 403 404 405 406 407 |
# File 'lib/puppet/util/hpe3par_api.rb', line 396 def cpg_ldlayout_map(ldlayout_hash) if !ldlayout_hash[:RAIDType].nil? && !ldlayout_hash[:RAIDType].empty? ldlayout_hash[:RAIDType] = Hpe3parSdk::CPGRAIDType .const_get(ldlayout_hash[:RAIDType]) end if !ldlayout_hash[:HA].nil? && !ldlayout_hash[:HA].empty? ldlayout_hash[:HA] = Hpe3parSdk::CPGHA .const_get(ldlayout_hash[:HA]) end return ldlayout_hash end |