commit 4a1fe61f6c0b30c7261adf4a74bc6b12d7b86087
Author: Gabriel de Araújo Cabral <email address hidden>
Date: Fri Dec 2 11:33:39 2022 -0500
Fix system cluster-show error updating string encoding
When it was executed 'system cluster-show <uuid or name>'
on a storage config, the error message "'str' object has no
attribute 'decode'" showed. The error was caused because
in upgrading from python 2 to 3 there were changes in the string
encoding. In the latest version, there is no possibility to
'decode' a string, and then it's necessary to remove it to
ensure correct display of cluster information.
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/866488 /opendev. org/starlingx/ config/ commit/ 4a1fe61f6c0b30c 7261adf4a74bc6b 12d7b86087
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 4a1fe61f6c0b30c 7261adf4a74bc6b 12d7b86087
Author: Gabriel de Araújo Cabral <email address hidden>
Date: Fri Dec 2 11:33:39 2022 -0500
Fix system cluster-show error updating string encoding
When it was executed 'system cluster-show <uuid or name>'
on a storage config, the error message "'str' object has no
attribute 'decode'" showed. The error was caused because
in upgrading from python 2 to 3 there were changes in the string
encoding. In the latest version, there is no possibility to
'decode' a string, and then it's necessary to remove it to
ensure correct display of cluster information.
Test Plan:
Pass: Storage, cluster-show command return proper info.
Pass: Standard, cluster-show command return proper info.
Closes-Bug: 1998599
Signed-off-by: Gabriel de Araújo Cabral <email address hidden> 6a51d0be2093115 e29eb5c3faf
Change-Id: Ia09bb5fc6c1c74