Revision b3876df2
ID | b3876df20b9cdd4532c410b5aa7c6873a502a535 |
Parent | 76a0798e |
Child | 6398450f |
Modify watcher to properly cleanup user down instances
- Query addtional instance fields, namely, 'admin_state' and
'admin_state_source'. Together with the instance field 'status',
the watcher is able to determine whether an instance was shutdown by
the user and whether it was already cleaned up.
- Add 'Instance' method 'NeedsCleanup' which determines whether a user
down instance needs to be cleaned up (i.e., it was not already
cleaned up).
Signed-off-by: Jose A. Lopes <jabolopes@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
Files
- added
- modified
- copied
- renamed
- deleted