Google Groups

Difference between instance.state and instance.update()

sajuptpm Feb 1, 2012 10:50 PM
Posted in group: boto-users
I am using
boto: 2.1.1
eucalyptus: 2.0.3

Getting exception "EC2ResponseError: EC2ResponseError: 403 Forbidden
None", when calling method update() on instance which is in 'shutting-
down' state.

I want to check whether an instance terminated or not, So what i am
doing is, in a while loop query instance with id and check state using
It is working if use "instance.state" instead of "instance.update()".

So which is the best way to do it ???.