From e7c02436dfcb282a9139121cd8c59d097b5181c9 Mon Sep 17 00:00:00 2001 From: Julien Gilli Date: Thu, 8 Feb 2018 14:03:27 -0800 Subject: [PATCH] PUBAPI-1470 volume objects should expose their creation timestamp in a property named "created" instead of "create_timestamp" Reviewed by: Mike Zeller Approved by: Mike Zeller --- CHANGES.md | 5 ++++- lib/do_volume/do_list.js | 3 +-- package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index cecd8a0..f6332c5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,7 +6,10 @@ Known issues: ## not yet released -(nothing yet) +## 5.6.1 + +- [PUBAPI-1470] volume objects should expose their creation timestamp in a + property named "created" instead of "create_timestamp". ## 5.6.0 diff --git a/lib/do_volume/do_list.js b/lib/do_volume/do_list.js index 147650f..85bab4e 100644 --- a/lib/do_volume/do_list.js +++ b/lib/do_volume/do_list.js @@ -96,14 +96,13 @@ function do_list(subcmd, opts, args, callback) { var created; var volume = volumes[i]; - created = new Date(volume.create_timestamp); + created = new Date(volume.created); if (volume.filesystem_path !== undefined) { volume.resource = volume.filesystem_path; } volume.shortid = volume.id.split('-', 1)[0]; - volume.created = volume.create_timestamp; volume.age = common.longAgo(created, now); } diff --git a/package.json b/package.json index 1096f50..0d00f3f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "triton", "description": "Joyent Triton CLI and client (https://www.joyent.com/triton)", - "version": "5.6.0", + "version": "5.6.1", "author": "Joyent (joyent.com)", "homepage": "https://github.com/joyent/node-triton", "dependencies": {