PUBAPI-1470 volume objects should expose their creation timestamp in a property named "created" instead of "create_timestamp"

Reviewed by: Mike Zeller <mike.zeller@joyent.com>
Approved by: Mike Zeller <mike.zeller@joyent.com>
This commit is contained in:
Julien Gilli 2018-02-08 14:03:27 -08:00
parent 68a889b8b7
commit e7c02436df
3 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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": {