| - Cleaned up the API calling routine so it will only create one instance of the REST::Client module. Typically was 10 to 30+ instances per VM disk CRUD. - Due to this some variables needed to be “global” to the plugin. - Removed some superfluous hashes and variables. - Repetitive code reduced to only on call. - Created one “Frankenstein” hash that retains all API methods, variables and json body structures for each API version used by the plugin. - One call to the global configuration in the version check to reduce execution time. - Cleanup some code and formatting. - Added some comments. | ||
|---|---|---|
| .. | ||
| FreeNAS.pm | ||