This repository has been archived by the owner on May 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rapid7/encrypted_databags
Encrypted databags update
- Loading branch information
Showing
1 changed file
with
0 additions
and
5 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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# Exception hierarchy for chef | ||
# Copyright (c) 2010 Noah Kantrowitz <[email protected]> | ||
|
||
|
||
class ChefError(Exception): | ||
"""Top-level Chef error.""" | ||
|
||
|
||
class ChefServerError(ChefError): | ||
"""An error from a Chef server. May include a HTTP response code.""" | ||
|
||
|
@@ -23,11 +21,9 @@ def from_error(message, code=None): | |
}.get(code, ChefServerError) | ||
return cls(message, code) | ||
|
||
|
||
class ChefServerNotFoundError(ChefServerError): | ||
"""A 404 Not Found server error.""" | ||
|
||
|
||
class ChefAPIVersionError(ChefError): | ||
"""An incompatible API version error""" | ||
|
||
|
@@ -41,4 +37,3 @@ def __init__(self, version): | |
|
||
class ChefDecryptionError(ChefError): | ||
"""Error decrypting data bag value. Most likely the provided key is incorrect""" | ||
|