tmetsch / occi-os

This is a clone and continuation of https://github.com/dizz/nova - it provides a python egg which can be easily deployed in OpenStack and will thereby add the 3rd party OCCI interface to OpenStack. For usage examples, see the OpenStack wiki.
Apache License 2.0
10 stars 23 forks source link

Fix suspend/start behavior #79

Closed bhagemeier closed 10 years ago

bhagemeier commented 10 years ago

Fixes #77

OCCI.stop() is mapped to OS.suspend() and OCCI.suspend() is mapped to OS.pause()

Both OCCI operations are inverted by OCCI.start(), which consequently has to distinguish the current machine state to trigger the correct inverse OS operation, i.e. OS.resume() or OS.unpause.

tmetsch commented 10 years ago

Thanks a lot - beer on me!