Skip to content
Permalink
Browse files

Hint that other providers might get pause/resume one day ;-)

  • Loading branch information...
riccardomurri committed Mar 1, 2019
1 parent 2629798 commit 04d7f902035813031fb602a3d989dbac33468009
@@ -363,10 +363,10 @@ def stop_instance(self, instance_id):
self._inventory = {}

def resume_instance(self, instance_state):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def pause_instance(self, instance_id):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")


def get_ips(self, instance_id):
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013, 2018 S3IT, University of Zurich
# Copyright (C) 2013, 2018, 2019 S3IT, University of Zurich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -362,10 +362,10 @@ def stop_instance(self, instance_id):
del self._instances[instance_id]

def resume_instance(self, instance_state):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def pause_instance(self, instance_id):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def get_ips(self, instance_id):
"""Retrieves the private and public ip addresses for a given instance.
@@ -1,6 +1,6 @@
#! /usr/bin/env python
#
# Copyright (C) 2013-2018 S3IT, University of Zurich
# Copyright (C) 2013-2019 S3IT, University of Zurich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -190,10 +190,10 @@ def stop_instance(self, instance_id):
instance.destroy()

def resume_instance(self, instance_state):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def pause_instance(self, instance_id):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def get_ips(self, instance_id):
instance = self.__get_instance(instance_id)
@@ -570,10 +570,10 @@ def stop_instance(self, instance_id):
del self._instances[instance_id]

def resume_instance(self, instance_state):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def pause_instance(self, instance_id):
raise NotImplementedError("This provider does not support pause / resume logic.")
raise NotImplementedError("This provider does not (yet) support pause / resume logic.")

def get_ips(self, instance_id):
"""Retrieves all IP addresses associated to a given instance.

0 comments on commit 04d7f90

Please sign in to comment.
You can’t perform that action at this time.