Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Iterating through vars of peering connection fails on _status #3071

Open
rswail opened this issue Mar 30, 2015 · 0 comments
Open

Iterating through vars of peering connection fails on _status #3071

rswail opened this issue Mar 30, 2015 · 0 comments

Comments

@rswail
Copy link

rswail commented Mar 30, 2015

boto 2.36.0

Accessing a peering connection VpcPeeringConnection using vars fails on the _status field.

>>> from boto import vpc
>>> c = vpc.connect_to_region('us-west-1')
>>> p = c.get_all_vpc_peering_connections()
>>> for k in vars(p[0]):
...     print k,getattr(p[0],k)
...
accepter_vpc_info VpcInfo:vpc-xxxxxx
tags {}
region RegionInfo:us-west-1
_status Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/usr/local/lib/python2.7/dist-packages/boto/vpc/vpc_peering_connection.py", line 79, in __repr__
    return '%s(%d)' % (self.code, self.message)
TypeError: %d format: a number is required, not unicode
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