This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #406 -- return error detail if sudo fails in knife bootstrap.
- Loading branch information
Showing
6 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Deis exception classes. | ||
""" | ||
|
||
from __future__ import unicode_literals | ||
|
||
from rest_framework.exceptions import APIException | ||
from rest_framework import status | ||
|
||
|
||
class BuildNodeError(APIException): | ||
"""Indicates a problem in building or bootstrapping a node.""" | ||
|
||
status_code = status.HTTP_401_UNAUTHORIZED | ||
|
||
def __init__(self, detail=None): | ||
self.detail = detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
:description: Python API Reference for the Deis api.exceptions module | ||
:keywords: deis, api.exceptions, python, api | ||
|
||
============== | ||
api.exceptions | ||
============== | ||
|
||
.. contents:: | ||
:local: | ||
.. currentmodule:: api.exceptions | ||
|
||
.. automodule:: api.exceptions | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ Server Reference | |
rest | ||
|
||
api.admin | ||
api.exceptions | ||
api.fields | ||
api.models | ||
api.routers | ||
|