Skip to content
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

Unable to delete hosts with special chars #670

Open
gardart opened this issue Jun 16, 2021 · 0 comments
Open

Unable to delete hosts with special chars #670

gardart opened this issue Jun 16, 2021 · 0 comments

Comments

@gardart
Copy link
Contributor

gardart commented Jun 16, 2021

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 2: ordinal not in range(128)

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/adagios/views.py", line 43, in wrapper
result = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/views.py", line 585, in bulk_delete
obj = pynag.Model.string_to_class[i.object_type].objects.get_by_shortname(i.description)
File "/usr/lib/python2.7/site-packages/pynag/Model/init.py", line 476, in get_by_shortname
shortname = str(shortname).strip()
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 2: ordinal not in range(128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant