obiba / opal-python-client

Python command lines for accessing Opal web services.
GNU General Public License v3.0
4 stars 3 forks source link

opal rest output string is a "b string" #33

Closed ymarcon closed 1 year ago

ymarcon commented 1 year ago

Unformatted output string is not correct:

$ opal rest -o https://opal-demo.obiba.org -u administrator -p password -m GET /system/databases
b'[{"name": "mongodb","hasDatasource": true,"defaultStorage": true,"usage": "STORAGE","usedForIdentifiers": false}]'

Pretty json output is correct:

$ opal rest -o https://opal-demo.obiba.org -u administrator -p password -m GET /system/databases -j
[
  {
    "defaultStorage": true,
    "hasDatasource": true,
    "name": "mongodb",
    "usage": "STORAGE",
    "usedForIdentifiers": false
  }
]
ymarcon commented 1 year ago

@kazoompa there is potentially the same issue in mica python