Bug #1956

global name 'ClientError' in not defined

Added by Vangelis Koukis over 10 years ago. Updated over 10 years ago.

Status:Closed Start date:01/30/2012
Priority:High Due date:
Assignee:Giorgos Verigakis % Done:

0%

Category:- Spent time: -
Target version:v0.3

Description

When running kamaki glance list without proper authentication:

(venv)vkoukis@dev67:~$ kamaki glance list
Traceback (most recent call last):
  File "/home/vkoukis/venv/bin/kamaki", line 9, in <module>
    load_entry_point('kamaki==0.3', 'console_scripts', 'kamaki')()
  File "/home/vkoukis/git/kamaki/kamaki/cli.py", line 825, in main
    ret = cmd.main(*args[3:])
  File "/home/vkoukis/git/kamaki/kamaki/cli.py", line 544, in main
    order=order)
  File "/home/vkoukis/git/kamaki/kamaki/clients/image.py", line 74, in list_public
    return self.http_get(path)
  File "/home/vkoukis/git/kamaki/kamaki/clients/http.py", line 132, in http_get
    return self.http_cmd('GET', path, success=success)
  File "/home/vkoukis/git/kamaki/kamaki/clients/http.py", line 128, in http_cmd
    json_reply=True)
  File "/home/vkoukis/git/kamaki/kamaki/clients/http.py", line 76, in raw_http_cmd
    headers['X-Auth-Token'] = self.token
  File "/home/vkoukis/git/kamaki/kamaki/clients/image.py", line 55, in token
    raise ClientError('No token was given')
NameError: global name 'ClientError' is not defined

Associated revisions

Revision b3b32add
Added by Giorgos Verigakis over 10 years ago

Bugfixes

  • Rename asterias to cyclades
  • Remove create image from compute
  • Fix missing imports

Refs #1956

History

#1 Updated by Vangelis Koukis over 10 years ago

  • Status changed from Assigned to Closed

Fixed in master.

Also available in: Atom PDF