Skip to content

Commit 4de8c5a

Browse files
Ramkishor ChaladiRamkishor Chaladi
authored andcommitted
Related this issue:#1744
Added code of lambda function of clean_time
1 parent 50a0dd3 commit 4de8c5a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

SoftLayer/CLI/virt/list.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from SoftLayer.CLI import environment
1010
from SoftLayer.CLI import formatting
1111
from SoftLayer.CLI import helpers
12+
from SoftLayer import utils
1213

1314
# pylint: disable=unnecessary-lambda
1415

@@ -30,6 +31,10 @@
3031
'tags',
3132
lambda server: formatting.tags(server.get('tagReferences')),
3233
mask="tagReferences.tag.name"),
34+
column_helper.Column(
35+
'createDate',
36+
lambda guest: utils.clean_time(guest.get('createDate'),
37+
in_format='%Y-%m-%dT%H:%M:%S', out_format='%Y-%m-%d %H:%M'), mask="createDate"),
3338
]
3439

3540
DEFAULT_COLUMNS = [

0 commit comments

Comments
 (0)