Bug #1956

global name 'ClientError' in not defined

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

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


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


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
  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
  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 11 years ago


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

Refs #1956


#1 Updated by Vangelis Koukis over 11 years ago

  • Status changed from Assigned to Closed

Fixed in master.

Also available in: Atom PDF