-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: The 'search' parameter should be of type 'str', but it is of type 'unicode'. #71
Comments
Probably because of python2.7, which handles string differently than python3 See #78 for fix |
After I updated the backup.py with suggested changes, I continue to receive following error. Traceback (most recent call last): |
I am using version 4.3 script to backup 4.3 ovirt environment but received following error.
Traceback (most recent call last):
File "/opt/ovirtbackup/backup.py", line 464, in
main(sys.argv[1:])
File "/opt/ovirtbackup/backup.py", line 223, in main
if system_service.data_centers_service().list(search='name=%s' % config.get_datacenter_name() )[0] is None:
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line 6507, in list
('search', search, str),
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 191, in _check_types
raise TypeError(' '.join(messages))
TypeError: The 'search' parameter should be of type 'str', but it is of type 'unicode'.
The text was updated successfully, but these errors were encountered: