Bug #16248
closedunable to process virt-who data, fails with error: "Validation failed: Name is invalid, Name is invalid"
Description
Data seems to indicate either underscores or periods at the end
2016-07-06 06:27:48 [katello/cp_proxy] [E] ForemanTasks::TaskError: Task b939db82-76e4-4c06-b711-6d506a59032c: ActiveRecord::RecordInvalid: Validation
failed: Name is invalid, Name is invalid
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks.rb:40:in `block in sync_task'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks.rb:39:in `tap'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks.rb:39:in `sync_task'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks/triggers.rb:22:in `sync_task'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.54/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:116:in `block in hype
rvisors_update'
| /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:72:in `as'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.54/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:115:in `hypervisors_u
pdate'