mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 19:28:07 +00:00
Fix tests
This commit is contained in:
parent
841b013223
commit
e13c84bada
@ -15,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from gns3server.compute.compute_error import ComputeError
|
from gns3server.controller.controller_error import ControllerError
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
@ -44,4 +44,4 @@ def get_next_application_id(projects, computes):
|
|||||||
application_id = (pool - used).pop()
|
application_id = (pool - used).pop()
|
||||||
return application_id
|
return application_id
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise ComputeError("Cannot create a new IOU node (limit of 512 nodes across all opened projects using the same computes)")
|
raise ControllerError("Cannot create a new IOU node (limit of 512 nodes across all opened projects using the same computes)")
|
||||||
|
Loading…
Reference in New Issue
Block a user