Skip to content

Commit

Permalink
Related this issue:softlayer#1744
Browse files Browse the repository at this point in the history
Added code of lambda function of clean_time
  • Loading branch information
Ramkishor Chaladi authored and Ramkishor Chaladi committed May 15, 2023
1 parent 50a0dd3 commit 4de8c5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SoftLayer/CLI/virt/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer.CLI import helpers
from SoftLayer import utils

# pylint: disable=unnecessary-lambda

Expand All @@ -30,6 +31,10 @@
'tags',
lambda server: formatting.tags(server.get('tagReferences')),
mask="tagReferences.tag.name"),
column_helper.Column(
'createDate',
lambda guest: utils.clean_time(guest.get('createDate'),
in_format='%Y-%m-%dT%H:%M:%S', out_format='%Y-%m-%d %H:%M'), mask="createDate"),
]

DEFAULT_COLUMNS = [
Expand Down

0 comments on commit 4de8c5a

Please sign in to comment.