Skip to content

Commit

Permalink
Enable created_at/updated_at for port-show/chassis-show
Browse files Browse the repository at this point in the history
Our node-show support created_at/updated_at two fields now,
but port-show and chassis-show dont support, enable them
for debugging/auditing

Change-Id: Id1bb970d852c2c971d45426d23a61ab7c6698a6c
Partial-Bug: #1244107
  • Loading branch information
Haomeng, Wang committed Nov 21, 2013
1 parent 9a77b17 commit 95aba63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ironicclient/v1/chassis_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def _print_chassis_show(chassis):
fields = ['uuid', 'description', 'extra']
fields = ['uuid', 'description', 'created_at', 'updated_at', 'extra']
data = dict([(f, getattr(chassis, f, '')) for f in fields])
utils.print_dict(data, wrap=72)

Expand Down
2 changes: 1 addition & 1 deletion ironicclient/v1/port_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def _print_port_show(port):
fields = ['uuid', 'address', 'extra']
fields = ['uuid', 'address', 'created_at', 'updated_at', 'extra']
data = dict([(f, getattr(port, f, '')) for f in fields])
utils.print_dict(data, wrap=72)

Expand Down

0 comments on commit 95aba63

Please sign in to comment.