opinkerfi / adagios

Adagios - Web Based Nagios Configuration
GNU Affero General Public License v3.0
330 stars 75 forks source link

object copy stack trace #57

Closed tomas-edwardsson closed 12 years ago

tomas-edwardsson commented 12 years ago

Environment:

Request Method: POST Request URL: http://adagios.opensource.is/objectbrowser/bulk_copy

Django Version: 1.3.1 Python Version: 2.6.6 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'adagios.okconfig_', 'adagios.objectbrowser', 'adagios.rest', 'adagios.misc'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/lib/python2.6/site-packages/adagios/objectbrowser/views.py" in bulk_copy
  2. c['form'].save() File "/usr/lib/python2.6/site-packages/adagios/objectbrowser/forms.py" in save
  3. i.copy(kwargs) File "/usr/lib/python2.6/site-packages/pynag/Model/init**.py" in copy
  4. new_object.save() File "/usr/lib/python2.6/site-packages/pynag/Model/init.py" in save
  5. self.set_filename( self.get_suggested_filename() ) File "/usr/lib/python2.6/site-packages/pynag/Model/init.py" in get_suggested_filename
  6. host = self.get_effective_hosts()[0]

Exception Type: IndexError at /objectbrowser/bulk_copy Exception Value: list index out of range

palli commented 12 years ago

fix exists in pynag commit http://adagios.opensource.is/objectbrowser/id=5750179626885502314