Skip to content

Commit

Permalink
[computes] Fixed the typo in picking compute display-name
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsrivastava committed Oct 2, 2024
1 parent 0c66ada commit e806c01
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ def get_computes_from_k8s():
try:
namespace = n.metadata.name
LOG.info('Getting details for ns: %s' % namespace)
display_name = n.metadata.labels.get('displayName')
item = {
'name': n.metadata.labels.get('displayname', namespace),
'description': '%s (%s)' % (n.metadata.labels.get('displayname'), n.metadata.name),
'name': display_name if display_name else namespace,
'description': '%s (%s)' % (display_name, namespace) if display_name else namespace,
'external_id': namespace,
# 'creation_timestamp': n.metadata.labels.get('creation_timestamp'),
}
Expand Down

0 comments on commit e806c01

Please sign in to comment.