This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
node-spearhead/lib
Kris Shannon 52fc48b3e9 Protect against cache lookup returning null
If the cache file does not exist _cacheGetJson will not pass any value to the callback.

In the getImage function the callback passed to _cacheGetJson assumes if there was no error value then the second argument must be an array.

Add some logic to guard against null values before iterating over the array.
2016-02-15 03:58:29 +11:00
..
do_account bash completion for 'triton account update <TAB>' 2016-01-18 11:58:01 -08:00
do_image Windows path fixes (should basically run on windows now) 2016-01-28 13:41:22 -08:00
do_instance joyent/node-triton#88: triton inst ... support for updating tags 2016-02-11 09:46:43 -08:00
do_key clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_network clistyle: 'triton network ...' 2016-01-04 21:53:52 -08:00
do_package clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_profile node-triton#86 "triton profiles" should not require a current profile 2016-02-02 22:03:01 -08:00
do_rbac sorted stable fields for 'triton rbac role ROLE' output; use 'add' for added fields in 'triton rbac apply' resource updates 2015-12-16 10:47:59 -08:00
bunyannoop.js improvements for using node-triton as a module 2015-12-08 11:59:45 -08:00
cli.js node-triton#90 triton CLI should summarize err.body.errors from CloudAPI 2016-02-12 11:09:55 -08:00
cloudapi2.js joyent/node-triton#88: triton inst ... support for updating tags 2016-02-11 09:46:43 -08:00
common.js Windows path fixes (should basically run on windows now) 2016-01-28 13:41:22 -08:00
config.js node-triton#86 "triton profiles" should not require a current profile 2016-02-02 22:03:01 -08:00
distractions.js no bigspinner by default: use '-ww' for a spinner, '-www' bigger, '-wwww' max 2015-09-23 09:30:06 -07:00
do_badger.js mpl and copyright 2015-09-04 14:12:20 -04:00
do_cloudapi.js Add '-d,--data DATA' option to triton cloudapi ... 2015-12-09 12:01:24 -08:00
do_completion.js bash completion for 'triton account update <TAB>' 2016-01-18 11:58:01 -08:00
do_create.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_datacenters.js minor command help tweaks 2015-10-19 09:03:39 -07:00
do_delete.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_env.js Windows path fixes (should basically run on windows now) 2016-01-28 13:41:22 -08:00
do_images.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_info.js minor fixes/tweaks to help output of a few commands 2015-10-29 15:24:37 -07:00
do_instances.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_keys.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_networks.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_packages.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_profiles.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_reboot.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_services.js mpl and copyright 2015-09-04 14:12:20 -04:00
do_ssh.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_start.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
do_stop.js clistyle: updated bash completion (much improved, fixes limitation that subsubcmds weren't supported) 2016-01-09 16:55:12 -08:00
errors.js joyent/node-triton#88: triton inst ... support for updating tags 2016-02-11 09:46:43 -08:00
index.js support triton.createClient(...) without requiring a configDir 2016-02-02 10:47:34 -08:00
metadataandtags.js joyent/node-triton#88: triton inst ... support for updating tags 2016-02-11 09:46:43 -08:00
rbac.js Windows path fixes (should basically run on windows now) 2016-01-28 13:41:22 -08:00
SaferJsonClient.js joyent/node-triton#54 'triton rbac role-tags' and refactoring to make adding other *-role-tags easy 2015-11-12 16:04:12 -08:00
tritonapi.js Protect against cache lookup returning null 2016-02-15 03:58:29 +11:00