Skip to content

Commit 1f4c7d4

Browse files
Merge pull request #1621 from edsonarios/issue1620
Mishandling of domain and hostname data in `slcli account item-detail`
2 parents 11ac0dc + 6da51a3 commit 1f4c7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/CLI/account/item_detail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def item_table(item):
2828
table.add_row(['cancellationDate', utils.clean_time(item.get('cancellationDate'), date_format, date_format)])
2929
table.add_row(['description', item.get('description')])
3030
table.align = 'l'
31-
fqdn = "{}.{}".format(item.get('hostName'), item.get('domain'))
31+
fqdn = "{}.{}".format(item.get('hostName', ''), item.get('domainName', ''))
3232
if fqdn != ".":
3333
table.add_row(['FQDN', fqdn])
3434

0 commit comments

Comments
 (0)