wenwj0 commented on code in PR #3751:
URL: https://github.com/apache/ambari/pull/3751#discussion_r1375471423
##########
ambari-common/src/main/python/ambari_commons/repo_manager/yum_manager.py:
##########
@@ -352,7 +330,7 @@ def rpm_check_package_available(self, name):
regex = re.compile(name_regex)
for package in packages:
- if regex.match(package['name']):
+ if regex.match(package['name'].decode()):
Review Comment:
Sometimes the return of `package['name']` is not `str`, so I think we need
to add a judgement this place.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]