Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

cli ipgroup-list fails when ipgroup has no servers #11

Open
mmarano opened this issue Jul 7, 2011 · 0 comments
Open

cli ipgroup-list fails when ipgroup has no servers #11

mmarano opened this issue Jul 7, 2011 · 0 comments

Comments

@mmarano
Copy link

mmarano commented Jul 7, 2011

I had an ipgroup on rackspace with no servers in the group. Attempting to list the ipgroups failed until I deleted the ipgroup.

Traceback (most recent call last):
File "/Users/mmarano/ve/openstack/bin/openstack-compute", line 8, in
load_entry_point('openstack.compute==2.0a1', 'console_scripts', 'openstack-compute')()
File "/Users/mmarano/ve/openstack/src/openstack.compute/openstack/compute/shell.py", line 488, in main
ComputeShell().main(sys.argv[1:])
File "/Users/mmarano/ve/openstack/src/openstack.compute/openstack/compute/shell.py", line 144, in main
args.func(args)
File "/Users/mmarano/ve/openstack/src/openstack.compute/openstack/compute/shell.py", line 323, in do_ipgroup_list
formatters = {'Server List': pretty_server_list})
File "/Users/mmarano/ve/openstack/src/openstack.compute/openstack/compute/shell.py", line 473, in print_list
row.append(formattersfield)
File "/Users/mmarano/ve/openstack/src/openstack.compute/openstack/compute/shell.py", line 318, in pretty_server_list
if len(ipgroup.servers):
File "/Users/mmarano/ve/openstack/src/openstack.compute/openstack/compute/base.py", line 95, in getattr
raise AttributeError(k)
AttributeError: servers
(openstack)mmarano:compute m

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

No branches or pull requests

1 participant