(config)
| 689 | }; |
| 690 | |
| 691 | function normalizeAdminConfig(config){ |
| 692 | const normalized = config && typeof config === 'object' ? config : {}; |
| 693 | ['servers','monitors','sslcerts','watchdog'].forEach(key => { |
| 694 | if(!Array.isArray(normalized[key])) normalized[key] = []; |
| 695 | }); |
| 696 | return normalized; |
| 697 | } |
| 698 | function activeConfigDef(){ |
| 699 | return CONFIG_TYPES[S.admin.selectedType] || CONFIG_TYPES.servers; |
| 700 | } |
no outgoing calls
no test coverage detected