Sfoglia il codice sorgente

HUE-6225 [metadata] Avoid string formatting error as variable is a list

Romain Rigaux 8 anni fa
parent
commit
2b8d58c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -53,7 +53,7 @@ def get_cluster_source_ids(api):
     CLUSTER_SOURCE_IDS = ''
     if get_navigator_hue_server_name():
       sources = api.get_cluster_source_ids()
-      LOG.info('Navigator cluster source ids: %s' % sources)
+      LOG.info('Navigator cluster source ids: %s' % (sources,))
       if sources:
         # Sometimes sourceId seems to be missing
         source_ids = ['sourceId:%s' % _id.get('sourceId') or _id.get('identity') for _id in sources]